summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91_machdep.c
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2011-02-21 13:11:05 +0000
committercognet <cognet@FreeBSD.org>2011-02-21 13:11:05 +0000
commit5dc900439de094fe84640c74938dc47561a5affe (patch)
treee61ff26d424fc2216c47239b9d9f4ebb9332a7e5 /sys/arm/at91/at91_machdep.c
parenta3ab04ea2ab303fab8df5ca3314c98c11a30e3a1 (diff)
downloadFreeBSD-src-5dc900439de094fe84640c74938dc47561a5affe.zip
FreeBSD-src-5dc900439de094fe84640c74938dc47561a5affe.tar.gz
Get myself a brain, move the call to init_param1() before the first use in
at91_machdep.c, and do it for the files I forgot the first time Reported by: andrew Submitted by: pluknet
Diffstat (limited to 'sys/arm/at91/at91_machdep.c')
-rw-r--r--sys/arm/at91/at91_machdep.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arm/at91/at91_machdep.c b/sys/arm/at91/at91_machdep.c
index 0771489..717e7c2 100644
--- a/sys/arm/at91/at91_machdep.c
+++ b/sys/arm/at91/at91_machdep.c
@@ -256,6 +256,9 @@ initarm(void *arg, void *arg2)
pcpu_init(pcpup, 0, sizeof(struct pcpu));
PCPU_SET(curthread, &thread0);
+ /* Do basic tuning, hz etc */
+ init_param1();
+
freemempos = (lastaddr + PAGE_MASK) & ~PAGE_MASK;
/* Define a macro to simplify memory allocation */
#define valloc_pages(var, np) \
@@ -302,8 +305,6 @@ initarm(void *arg, void *arg2)
valloc_pages(kernelstack, KSTACK_PAGES);
valloc_pages(msgbufpv, round_page(msgbufsize) / PAGE_SIZE);
- /* Do basic tuning, hz etc */
- init_param1();
/*
* Now we start construction of the L1 page table
* We start by mapping the L2 page tables into the L1.
OpenPOWER on IntegriCloud