diff options
Diffstat (limited to 'sys/boot/sparc64/loader/main.c')
-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); |