diff options
author | gonzo <gonzo@FreeBSD.org> | 2010-01-25 00:44:05 +0000 |
---|---|---|
committer | gonzo <gonzo@FreeBSD.org> | 2010-01-25 00:44:05 +0000 |
commit | 8a360e9b895718c149bf576ebd23292d08b902bc (patch) | |
tree | 3f8bc1e7f0c14859d089fd83f187631956bd080c /sys/mips/sentry5/s5_machdep.c | |
parent | 5b71974232932d6b97061977abe1f7766cf0e61a (diff) | |
download | FreeBSD-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/sentry5/s5_machdep.c')
-rw-r--r-- | sys/mips/sentry5/s5_machdep.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/mips/sentry5/s5_machdep.c b/sys/mips/sentry5/s5_machdep.c index 238a2b4..00e6231 100644 --- a/sys/mips/sentry5/s5_machdep.c +++ b/sys/mips/sentry5/s5_machdep.c @@ -119,7 +119,7 @@ mips_init(void) * from CFE, omit the region at the start of physical * memory where the kernel has been loaded. */ - phys_avail[i] += MIPS_KSEG0_TO_PHYS((vm_offset_t)&end); + phys_avail[i] += MIPS_KSEG0_TO_PHYS(kernel_kseg0_end); } phys_avail[i + 1] = addr + len; physmem += len; @@ -187,9 +187,11 @@ platform_start(__register_t a0, __register_t a1, __register_t a2, uint64_t platform_counter_freq; /* 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(); |