diff options
author | cognet <cognet@FreeBSD.org> | 2011-02-13 20:02:46 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2011-02-13 20:02:46 +0000 |
commit | 12f7536b5ee851307da894042d5d33a379488d53 (patch) | |
tree | b1573a4e80355f89d5a3c8978626b03ff97ee9d5 /sys/arm/econa | |
parent | a77e48c8273af2a9218aa460cd04acc71780c2a5 (diff) | |
download | FreeBSD-src-12f7536b5ee851307da894042d5d33a379488d53.zip FreeBSD-src-12f7536b5ee851307da894042d5d33a379488d53.tar.gz |
Call init_param1() much earlier, so that msgbufsize is non-zero when we want
to map and use the msgbuf.
Diffstat (limited to 'sys/arm/econa')
-rw-r--r-- | sys/arm/econa/econa_machdep.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arm/econa/econa_machdep.c b/sys/arm/econa/econa_machdep.c index bbd615f..0262446 100644 --- a/sys/arm/econa/econa_machdep.c +++ b/sys/arm/econa/econa_machdep.c @@ -208,6 +208,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 */ @@ -384,8 +387,6 @@ initarm(void *arg, void *arg2) phys_avail[i++] = PHYSADDR + memsize; phys_avail[i++] = 0; phys_avail[i++] = 0; - /* Do basic tuning, hz etc */ - init_param1(); init_param2(physmem); kdb_init(); |