summaryrefslogtreecommitdiffstats
path: root/sys/arm/freescale/imx/imx_machdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arm/freescale/imx/imx_machdep.c')
-rw-r--r--sys/arm/freescale/imx/imx_machdep.c27
1 files changed, 10 insertions, 17 deletions
diff --git a/sys/arm/freescale/imx/imx_machdep.c b/sys/arm/freescale/imx/imx_machdep.c
index de0eb68..3f52206 100644
--- a/sys/arm/freescale/imx/imx_machdep.c
+++ b/sys/arm/freescale/imx/imx_machdep.c
@@ -88,31 +88,24 @@ vm_offset_t
initarm_lastaddr(void)
{
+ return (devmap_vaddr);
+}
+
+void
+initarm_early_init(void)
+{
+
/* XXX - Get rid of this stuff soon. */
boothowto |= RB_VERBOSE|RB_MULTIPLE;
bootverbose = 1;
-
- /*
- * Normally initarm() calls platform_devmap_init() much later in the
- * init process to set up static device mappings. To calculate the
- * highest available kva address we have to do that setup first. It
- * maps downwards from ARM_VECTORS_HIGH and the last usable kva address
- * is the point right before the virtual address of the first static
- * mapping. So go set up the static mapping table now, then we can
- * return the lowest static devmap vaddr as the end of usable kva.
- */
- imx_devmap_init();
-
- arm_devmap_register_table(devmap_entries);
-
- return (devmap_vaddr);
}
int
-platform_devmap_init(void)
+initarm_devmap_init(void)
{
- /* On imx this work is done during initarm_lastaddr(). */
+ imx_devmap_init();
+ arm_devmap_register_table(devmap_entries);
return (0);
}
OpenPOWER on IntegriCloud