summaryrefslogtreecommitdiffstats
path: root/sys/arm/tegra
diff options
context:
space:
mode:
authorandrew <andrew@FreeBSD.org>2012-09-22 22:41:38 +0000
committerandrew <andrew@FreeBSD.org>2012-09-22 22:41:38 +0000
commit32eb506f225e2b85e47ea826ddccfaf600657810 (patch)
tree80ef4f90009db9525d5d1ae87fe67e96ca55131e /sys/arm/tegra
parentec17dd03e0b43e9e9f9b96fc7e6ed1072b7a9154 (diff)
downloadFreeBSD-src-32eb506f225e2b85e47ea826ddccfaf600657810.zip
FreeBSD-src-32eb506f225e2b85e47ea826ddccfaf600657810.tar.gz
Reduce the diff between the FDT implementations of initarm.
This only touches whitespace and comments.
Diffstat (limited to 'sys/arm/tegra')
-rw-r--r--sys/arm/tegra/tegra2_machdep.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arm/tegra/tegra2_machdep.c b/sys/arm/tegra/tegra2_machdep.c
index 07616f0..9977c09 100644
--- a/sys/arm/tegra/tegra2_machdep.c
+++ b/sys/arm/tegra/tegra2_machdep.c
@@ -344,6 +344,9 @@ initarm(struct arm_boot_params *abp)
memsize = 0;
set_cpufuncs();
+ /*
+ * Find the dtb passed in by the boot loader.
+ */
kmdp = preload_search_by_type("elf kernel");
if (kmdp != NULL)
dtbp = MD_FETCH(kmdp, MODINFOMD_DTBP, vm_offset_t);
@@ -520,7 +523,7 @@ initarm(struct arm_boot_params *abp)
if (err_devmap != 0)
printf("WARNING: could not fully configure devmap, error=%d\n",
- err_devmap);
+ err_devmap);
/*
* Pages were allocated during the secondary bootstrap for the
@@ -553,8 +556,8 @@ initarm(struct arm_boot_params *abp)
undefined_init();
init_proc0(kernelstack.pv_va);
- arm_vector_init(ARM_VECTORS_HIGH, ARM_VEC_ALL);
+ arm_vector_init(ARM_VECTORS_HIGH, ARM_VEC_ALL);
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;
OpenPOWER on IntegriCloud