summaryrefslogtreecommitdiffstats
path: root/sys/mips/adm5120
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2010-01-25 00:44:05 +0000
committergonzo <gonzo@FreeBSD.org>2010-01-25 00:44:05 +0000
commit8a360e9b895718c149bf576ebd23292d08b902bc (patch)
tree3f8bc1e7f0c14859d089fd83f187631956bd080c /sys/mips/adm5120
parent5b71974232932d6b97061977abe1f7766cf0e61a (diff)
downloadFreeBSD-src-8a360e9b895718c149bf576ebd23292d08b902bc.zip
FreeBSD-src-8a360e9b895718c149bf576ebd23292d08b902bc.tar.gz
- Call post-boot fixup function in order to get proper static
symbols resolving in DDB - When zeroing .bss/.sbss do not round end address to page boundary, it's not neccessary and might destroy data pased by trampoline or boot loader
Diffstat (limited to 'sys/mips/adm5120')
-rw-r--r--sys/mips/adm5120/adm5120_machdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/mips/adm5120/adm5120_machdep.c b/sys/mips/adm5120/adm5120_machdep.c
index b0f26ab..90a6b90 100644
--- a/sys/mips/adm5120/adm5120_machdep.c
+++ b/sys/mips/adm5120/adm5120_machdep.c
@@ -94,7 +94,7 @@ mips_init(void)
}
/* phys_avail regions are in bytes */
- phys_avail[0] = MIPS_KSEG0_TO_PHYS((vm_offset_t)&end);
+ phys_avail[0] = MIPS_KSEG0_TO_PHYS(kernel_kseg0_end);
phys_avail[1] = ctob(realmem);
physmem = realmem;
@@ -153,9 +153,11 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused,
uint64_t platform_counter_freq = 175 * 1000 * 1000;
/* clear the BSS and SBSS segments */
- kernend = round_page((vm_offset_t)&end);
+ kernend = (vm_offset_t)&end;
memset(&edata, 0, kernend - (vm_offset_t)(&edata));
+ mips_postboot_fixup();
+
/* Initialize pcpu stuff */
mips_pcpu0_init();
OpenPOWER on IntegriCloud