diff options
author | bms <bms@FreeBSD.org> | 2008-10-02 22:31:30 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2008-10-02 22:31:30 +0000 |
commit | 8ab83d3e564aba262c6a0a46614326361f2e2471 (patch) | |
tree | e60b5dd7bd08a179ec3de5853b863b93bf7d33c4 | |
parent | 4c38b5e4739d43ec4869509a321b9fc07f90d336 (diff) | |
download | FreeBSD-src-8ab83d3e564aba262c6a0a46614326361f2e2471.zip FreeBSD-src-8ab83d3e564aba262c6a0a46614326361f2e2471.tar.gz |
Allow static hints to override kenv.
-rw-r--r-- | sys/arm/xscale/ixp425/avila_machdep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/arm/xscale/ixp425/avila_machdep.c b/sys/arm/xscale/ixp425/avila_machdep.c index 35a9f25..7fed47b 100644 --- a/sys/arm/xscale/ixp425/avila_machdep.c +++ b/sys/arm/xscale/ixp425/avila_machdep.c @@ -480,6 +480,11 @@ initarm(void *arg, void *arg2) init_param1(); init_param2(physmem); kdb_init(); + + /* use static kernel environment if so configured */ + if (envmode == 1) + kern_envp = static_env; + return ((void *)(kernelstack.pv_va + USPACE_SVC_STACK_TOP - sizeof(struct pcb))); } |