diff options
author | pluknet <pluknet@FreeBSD.org> | 2011-04-19 15:05:12 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2011-04-19 15:05:12 +0000 |
commit | a0f46fc78dad39f5fb5ad8351f146353de9e960b (patch) | |
tree | 6cad3554d5196232865503bcb2b420bcdb2d3c72 | |
parent | 54d630d4cb2165db549320c9509aba3a4c8aa913 (diff) | |
download | FreeBSD-src-a0f46fc78dad39f5fb5ad8351f146353de9e960b.zip FreeBSD-src-a0f46fc78dad39f5fb5ad8351f146353de9e960b.tar.gz |
Call init_param1() much earlier, so that msgbufsize is non-zero when we want
to map and use the msgbuf.
Reviewed by: cognet
MFC after: 1 week
-rw-r--r-- | sys/arm/xscale/i8134x/crb_machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arm/xscale/i8134x/crb_machdep.c b/sys/arm/xscale/i8134x/crb_machdep.c index fd8aadd..8f2c43eb 100644 --- a/sys/arm/xscale/i8134x/crb_machdep.c +++ b/sys/arm/xscale/i8134x/crb_machdep.c @@ -196,6 +196,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 = 0x00200000; /* Define a macro to simplify memory allocation */ #define valloc_pages(var, np) \ @@ -389,8 +392,6 @@ initarm(void *arg, void *arg2) phys_avail[i++] = 0; phys_avail[i] = 0; - /* Do basic tuning, hz etc */ - init_param1(); init_param2(physmem); kdb_init(); return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP - |