summaryrefslogtreecommitdiffstats
path: root/sys/arm/mv/mv_machdep.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2012-06-14 04:00:30 +0000
committerimp <imp@FreeBSD.org>2012-06-14 04:00:30 +0000
commitf69b442d94ad25c4757da3576ce5afd2ca318cd5 (patch)
treecfdbf8858829ac4ab6783d0c91f5d459501ed435 /sys/arm/mv/mv_machdep.c
parent261e450cc4dc2265056f6ef9669212e5bfb06493 (diff)
downloadFreeBSD-src-f69b442d94ad25c4757da3576ce5afd2ca318cd5.zip
FreeBSD-src-f69b442d94ad25c4757da3576ce5afd2ca318cd5.tar.gz
Modify all the arm platform files to call parse_boot_param passing in
the boot parameters from initarm first thing. parse_boot_param parses the boot arguments and converts them to the /boot/loader metadata the rest of the kernel uses. parse_boot_param is a weak alias to fake_preload_metadata, which all the platforms use now, but may become more extensive in the future. Since it is a weak symbol, specific boards may define their own parse_boot_param to interface to custom boot loaders. Reviewed by: cognet@, Ian Lapore
Diffstat (limited to 'sys/arm/mv/mv_machdep.c')
-rw-r--r--sys/arm/mv/mv_machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/mv/mv_machdep.c b/sys/arm/mv/mv_machdep.c
index 76ab99e..cf055a2 100644
--- a/sys/arm/mv/mv_machdep.c
+++ b/sys/arm/mv/mv_machdep.c
@@ -331,7 +331,7 @@ initarm(struct arm_boot_params *abp)
*/
mdp = (void *)((uint32_t)mdp & ~PAGE_MASK);
- /* Parse metadata and fetch parameters */
+ /* Parse metadata and fetch parameters (move to common machdep.c?) */
if (mdp != NULL) {
preload_metadata = mdp;
kmdp = preload_search_by_type("elf kernel");
@@ -350,7 +350,7 @@ initarm(struct arm_boot_params *abp)
preload_addr_relocate = KERNVIRTADDR - KERNPHYSADDR;
} else {
/* Fall back to hardcoded metadata. */
- lastaddr = fake_preload_metadata();
+ lastaddr = fake_preload_metadata(abp);
}
#if defined(FDT_DTB_STATIC)
OpenPOWER on IntegriCloud