summaryrefslogtreecommitdiffstats
path: root/sys/arm/s3c2xx0
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/s3c2xx0
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/s3c2xx0')
-rw-r--r--sys/arm/s3c2xx0/s3c24x0_machdep.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arm/s3c2xx0/s3c24x0_machdep.c b/sys/arm/s3c2xx0/s3c24x0_machdep.c
index 6879581..d183ff9 100644
--- a/sys/arm/s3c2xx0/s3c24x0_machdep.c
+++ b/sys/arm/s3c2xx0/s3c24x0_machdep.c
@@ -244,10 +244,9 @@ initarm(struct arm_boot_params *abp)
int i;
uint32_t memsize;
+ boothowto = 0; /* Likely not needed */
+ lastaddr = parse_boot_param(abp);
i = 0;
-
- boothowto = 0;
-
set_cpufuncs();
cpufuncs.cf_sleep = s3c24x0_sleep;
lastaddr = fake_preload_metadata();
OpenPOWER on IntegriCloud