aboutsummaryrefslogtreecommitdiff
path: root/sys/arm
diff options
context:
space:
mode:
authorOlivier Houchard <cognet@FreeBSD.org>2011-02-21 13:11:05 +0000
committerOlivier Houchard <cognet@FreeBSD.org>2011-02-21 13:11:05 +0000
commit3e9a516ed480759bf9a9a6a77de6b8fbfff26023 (patch)
treee61ff26d424fc2216c47239b9d9f4ebb9332a7e5 /sys/arm
parent29f269dc1f1c0225e4a11cf8938ae36617000607 (diff)
downloadsrc-3e9a516ed480759bf9a9a6a77de6b8fbfff26023.tar.gz
src-3e9a516ed480759bf9a9a6a77de6b8fbfff26023.zip
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
Notes
Notes: svn path=/head/; revision=218913
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/at91/at91_machdep.c5
-rw-r--r--sys/arm/s3c2xx0/s3c24x0_machdep.c5
-rw-r--r--sys/arm/xscale/pxa/pxa_machdep.c5
3 files changed, 9 insertions, 6 deletions
diff --git a/sys/arm/at91/at91_machdep.c b/sys/arm/at91/at91_machdep.c
index 0771489c6391..717e7c229c37 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.
diff --git a/sys/arm/s3c2xx0/s3c24x0_machdep.c b/sys/arm/s3c2xx0/s3c24x0_machdep.c
index 008d93991d15..31ae74c96a52 100644
--- a/sys/arm/s3c2xx0/s3c24x0_machdep.c
+++ b/sys/arm/s3c2xx0/s3c24x0_machdep.c
@@ -257,6 +257,9 @@ initarm(void *arg, void *arg2)
pcpu_init(pcpup, 0, sizeof(struct pcpu));
PCPU_SET(curthread, &thread0);
+ /* Do basic tuning, hz etc */
+ init_param1();
+
#define KERNEL_TEXT_BASE (KERNBASE)
freemempos = (lastaddr + PAGE_MASK) & ~PAGE_MASK;
/* Define a macro to simplify memory allocation */
@@ -438,8 +441,6 @@ initarm(void *arg, void *arg2)
phys_avail[2] = 0;
phys_avail[3] = 0;
- /* Do basic tuning, hz etc */
- init_param1();
init_param2(physmem);
kdb_init();
diff --git a/sys/arm/xscale/pxa/pxa_machdep.c b/sys/arm/xscale/pxa/pxa_machdep.c
index c0605969ce33..d2dc106a27f0 100644
--- a/sys/arm/xscale/pxa/pxa_machdep.c
+++ b/sys/arm/xscale/pxa/pxa_machdep.c
@@ -182,6 +182,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 = 0xa0200000;
/* Define a macro to simplify memory allocation */
#define valloc_pages(var, np) \
@@ -424,8 +427,6 @@ initarm(void *arg, void *arg2)
phys_avail[0] = round_page(virtual_avail - KERNBASE + phys_avail[0]);
#endif
- /* Do basic tuning, hz etc */
- init_param1();
init_param2(physmem);
kdb_init();
return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP -