diff options
author | Marius Strobl <marius@FreeBSD.org> | 2009-02-10 21:48:42 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2009-02-10 21:48:42 +0000 |
commit | ceab1bee37f1f318bd228f4e99fd6370b79ca796 (patch) | |
tree | 4d527b31b1299f1d997655df488c7aad9d7cde9e /sys/boot | |
parent | 5d1df4b56d2f0705dda2b0e223ab9b4b7a29a469 (diff) | |
download | src-ceab1bee37f1f318bd228f4e99fd6370b79ca796.tar.gz src-ceab1bee37f1f318bd228f4e99fd6370b79ca796.zip |
- Use the generally more appropriate PROM base rather than the
kernel one as the non-faulting flush address in the loader so
we can can change KERNBASE and VM_MIN_KERNEL_ADDRESS if we
ever want to without needing to worry about using a compatible
loader.
- Correctly check for LOADER_DEBUG.
- Add a missing const for page_sizes[].
Notes
Notes:
svn path=/head/; revision=188455
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/sparc64/loader/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/sparc64/loader/main.c b/sys/boot/sparc64/loader/main.c index c14248ef1a8e..aa15b30af29e 100644 --- a/sys/boot/sparc64/loader/main.c +++ b/sys/boot/sparc64/loader/main.c @@ -383,7 +383,7 @@ __elfN(exec)(struct preloaded_file *fp) return (error); printf("jumping to kernel entry at %#lx.\n", e->e_entry); -#if LOADER_DEBUG +#ifdef LOADER_DEBUG pmap_print_tlb_sun4u(); #endif @@ -499,7 +499,7 @@ itlb_enter_sun4u(u_long vpn, u_long data) stxa(AA_IMMU_TAR, ASI_IMMU, TLB_TAR_VA(vpn) | TLB_TAR_CTX(TLB_CTX_KERNEL)); stxa(TLB_DAR_SLOT(i), ASI_ITLB_DATA_ACCESS_REG, data); - flush(KERNBASE); + flush(PROMBASE); break; } wrpr(pstate, reg, 0); @@ -511,7 +511,7 @@ itlb_enter_sun4u(u_long vpn, u_long data) stxa(AA_IMMU_TAR, ASI_IMMU, TLB_TAR_VA(vpn) | TLB_TAR_CTX(TLB_CTX_KERNEL)); stxa(0, ASI_ITLB_DATA_IN_REG, data); - flush(KERNBASE); + flush(PROMBASE); wrpr(pstate, reg, 0); } @@ -837,7 +837,7 @@ exit(int code) } #ifdef LOADER_DEBUG -static const char *page_sizes[] = { +static const char *const page_sizes[] = { " 8k", " 64k", "512k", " 4m" }; |