diff options
author | cognet <cognet@FreeBSD.org> | 2005-04-27 13:29:54 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2005-04-27 13:29:54 +0000 |
commit | 271aaadf53fd4e1259d25c73ec9fc6e9504860f1 (patch) | |
tree | 2f0744498c0955a51a81c15400a5e0aa43dc100d /sys/arm | |
parent | 581ef8042b455f75bd7425c237d8214841cbb288 (diff) | |
download | FreeBSD-src-271aaadf53fd4e1259d25c73ec9fc6e9504860f1.zip FreeBSD-src-271aaadf53fd4e1259d25c73ec9fc6e9504860f1.tar.gz |
Allocating the memory for the kernel stack one time is enough.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/xscale/i80321/iq31244_machdep.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sys/arm/xscale/i80321/iq31244_machdep.c b/sys/arm/xscale/i80321/iq31244_machdep.c index 7aff4f1..1e51fdc 100644 --- a/sys/arm/xscale/i80321/iq31244_machdep.c +++ b/sys/arm/xscale/i80321/iq31244_machdep.c @@ -356,13 +356,6 @@ initarm(void *arg, void *arg2) pmap_map_chunk(l1pagetable, undstack.pv_va, undstack.pv_pa, UND_STACK_SIZE * PAGE_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE); - if (freemem_after + KSTACK_PAGES * PAGE_SIZE < afterkern) { - alloc_afterkern(kernelstack.pv_va, kernelstack.pv_pa, - KSTACK_PAGES * PAGE_SIZE); - } else - pmap_map_chunk(l1pagetable, kernelstack.pv_va, - kernelstack.pv_pa, KSTACK_PAGES * PAGE_SIZE, - VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE); if (freemem_after + MSGBUF_SIZE < afterkern) { alloc_afterkern(msgbufpv.pv_va, msgbufpv.pv_pa, IRQ_STACK_SIZE * PAGE_SIZE); |