From 32eb506f225e2b85e47ea826ddccfaf600657810 Mon Sep 17 00:00:00 2001 From: andrew Date: Sat, 22 Sep 2012 22:41:38 +0000 Subject: Reduce the diff between the FDT implementations of initarm. This only touches whitespace and comments. --- sys/arm/tegra/tegra2_machdep.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'sys/arm/tegra') 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; -- cgit v1.1