diff options
author | andrew <andrew@FreeBSD.org> | 2012-09-26 09:27:38 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2012-09-26 09:27:38 +0000 |
commit | 55574dacdcd67b9b6db91eb87d7b02e8161928d4 (patch) | |
tree | 7675acdadc06a94a768a5f00d367b007c1c0e2ba | |
parent | afcbb47a63f91a7b940e9a9b5c3d6325bb534232 (diff) | |
download | FreeBSD-src-55574dacdcd67b9b6db91eb87d7b02e8161928d4.zip FreeBSD-src-55574dacdcd67b9b6db91eb87d7b02e8161928d4.tar.gz |
Use arm_dump_avail_init to build the dump_avail array
-rw-r--r-- | sys/arm/lpc/lpc_machdep.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/arm/lpc/lpc_machdep.c b/sys/arm/lpc/lpc_machdep.c index d6e1a09..ee3bb5c 100644 --- a/sys/arm/lpc/lpc_machdep.c +++ b/sys/arm/lpc/lpc_machdep.c @@ -538,12 +538,7 @@ initarm(struct arm_boot_params *abp) init_proc0(kernelstack.pv_va); arm_vector_init(ARM_VECTORS_HIGH, ARM_VEC_ALL); - - dump_avail[0] = 0; - dump_avail[1] = memsize; - dump_avail[2] = 0; - dump_avail[3] = 0; - + arm_dump_avail_init(memsize, sizeof(dump_avail) / sizeof(dump_avail[0])); pmap_bootstrap(freemempos, pmap_bootstrap_lastaddr, &kernel_l1pt); msgbufp = (void *)msgbufpv.pv_va; msgbufinit(msgbufp, msgbufsize); |