summaryrefslogtreecommitdiffstats
path: root/sys/boot/sparc64/loader/main.c
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2009-02-10 21:48:42 +0000
committermarius <marius@FreeBSD.org>2009-02-10 21:48:42 +0000
commit9618354cad5d7984141563788baae57610de7d27 (patch)
tree4d527b31b1299f1d997655df488c7aad9d7cde9e /sys/boot/sparc64/loader/main.c
parent59864a1e04bce3c677036894f20613aee716733d (diff)
downloadFreeBSD-src-9618354cad5d7984141563788baae57610de7d27.zip
FreeBSD-src-9618354cad5d7984141563788baae57610de7d27.tar.gz
- 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[].
Diffstat (limited to 'sys/boot/sparc64/loader/main.c')
-rw-r--r--sys/boot/sparc64/loader/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/sparc64/loader/main.c b/sys/boot/sparc64/loader/main.c
index c14248e..aa15b30 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"
};
OpenPOWER on IntegriCloud