Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Sep 2012 09:27:38 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240953 - head/sys/arm/lpc
Message-ID:  <201209260927.q8Q9RcbU099450@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Wed Sep 26 09:27:38 2012
New Revision: 240953
URL: http://svn.freebsd.org/changeset/base/240953

Log:
  Use arm_dump_avail_init to build the dump_avail array

Modified:
  head/sys/arm/lpc/lpc_machdep.c

Modified: head/sys/arm/lpc/lpc_machdep.c
==============================================================================
--- head/sys/arm/lpc/lpc_machdep.c	Wed Sep 26 09:25:31 2012	(r240952)
+++ head/sys/arm/lpc/lpc_machdep.c	Wed Sep 26 09:27:38 2012	(r240953)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209260927.q8Q9RcbU099450>