diff options
author | marius <marius@FreeBSD.org> | 2008-08-22 20:28:19 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2008-08-22 20:28:19 +0000 |
commit | b09c8c9fe798b03bb9ad0ac314bc2aa293282440 (patch) | |
tree | 0267cfba52946517b0cbbeecbd70a19cb7e6b8a9 /sys/boot/sparc64 | |
parent | e4f89fa63b16195aab9b830031c8f59ac283a5ad (diff) | |
download | FreeBSD-src-b09c8c9fe798b03bb9ad0ac314bc2aa293282440.zip FreeBSD-src-b09c8c9fe798b03bb9ad0ac314bc2aa293282440.tar.gz |
cosmetic changes and style fixes
Diffstat (limited to 'sys/boot/sparc64')
-rw-r--r-- | sys/boot/sparc64/loader/main.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/boot/sparc64/loader/main.c b/sys/boot/sparc64/loader/main.c index 7a85dc2..b02b4bb 100644 --- a/sys/boot/sparc64/loader/main.c +++ b/sys/boot/sparc64/loader/main.c @@ -9,6 +9,7 @@ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); + /* * FreeBSD/sparc64 kernel loader - machine dependent part * @@ -28,7 +29,6 @@ __FBSDID("$FreeBSD$"); #include <vm/vm.h> #include <machine/asi.h> -#include <machine/atomic.h> #include <machine/cpufunc.h> #include <machine/elf.h> #include <machine/lsu.h> @@ -438,7 +438,7 @@ mmu_mapin_sun4u(vm_offset_t va, vm_size_t len) while (len) { if (dtlb_va_to_pa_sun4u(va) == (vm_offset_t)-1 || itlb_va_to_pa_sun4u(va) == (vm_offset_t)-1) { - /* Allocate a physical page, claim the virtual area */ + /* Allocate a physical page, claim the virtual area. */ if (pa == (vm_offset_t)-1) { pa = alloc_phys(PAGE_SIZE_4M, PAGE_SIZE_4M); if (pa == (vm_offset_t)-1) @@ -448,7 +448,9 @@ mmu_mapin_sun4u(vm_offset_t va, vm_size_t len) panic("%s: can't claim virtual page " "(wanted %#lx, got %#lx)", __func__, va, mva); - /* The mappings may have changed, be paranoid. */ + /* + * The mappings may have changed, be paranoid. + */ continue; } /* @@ -553,6 +555,7 @@ tlb_init_sun4u(void) } if (cpu != bootcpu) panic("%s: no node for bootcpu?!?!", __func__); + if (OF_getprop(child, "#dtlb-entries", &dtlb_slot_max, sizeof(dtlb_slot_max)) == -1 || OF_getprop(child, "#itlb-entries", &itlb_slot_max, @@ -580,7 +583,7 @@ main(int (*openfirm)(void *)) struct devsw **dp; /* - * Tell the Open Firmware functions where they find the ofw gate. + * Tell the Open Firmware functions where they find the OFW gate. */ OF_init(openfirm); |