diff options
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/sa11x0/assabet_machdep.c | 11 | ||||
-rw-r--r-- | sys/arm/xscale/i80321/iq31244_machdep.c | 7 |
2 files changed, 1 insertions, 17 deletions
diff --git a/sys/arm/sa11x0/assabet_machdep.c b/sys/arm/sa11x0/assabet_machdep.c index 276f38d..92fc4cb 100644 --- a/sys/arm/sa11x0/assabet_machdep.c +++ b/sys/arm/sa11x0/assabet_machdep.c @@ -180,7 +180,6 @@ initarm(void *arg, void *arg2) { struct pcpu *pc; struct pv_addr kernel_l1pt; - struct pv_addr proc0_uarea; struct pv_addr md_addr; struct pv_addr md_bla; int loop; @@ -275,7 +274,7 @@ initarm(void *arg, void *arg2) valloc_pages(abtstack, ABT_STACK_SIZE); valloc_pages(undstack, UND_STACK_SIZE); valloc_pages(kernelstack, KSTACK_PAGES); - + lastalloced = kernelstack.pv_va; /* * Allocate memory for the l1 and l2 page tables. The scheme to avoid @@ -284,10 +283,6 @@ initarm(void *arg, void *arg2) * this to work (which is supposed to be the case). */ - /* Allocate pages for process 0 kernel stack and uarea */ - valloc_pages(proc0_uarea, UAREA_PAGES); - lastalloced = proc0_uarea.pv_va; - /* * Now we start construction of the L1 page table * We start by mapping the L2 page tables into the L1. @@ -324,9 +319,6 @@ initarm(void *arg, void *arg2) UND_STACK_SIZE * PAGE_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE); pmap_map_chunk(l1pagetable, kernelstack.pv_va, kernelstack.pv_pa, KSTACK_PAGES * PAGE_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE); - pmap_map_chunk(l1pagetable, proc0_uarea.pv_va, proc0_uarea.pv_pa, - UAREA_PAGES * PAGE_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE); - pmap_map_chunk(l1pagetable, kernel_l1pt.pv_va, kernel_l1pt.pv_pa, L1_TABLE_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_PAGETABLE); @@ -393,7 +385,6 @@ initarm(void *arg, void *arg2) /* Set stack for exception handlers */ proc_linkup(&proc0, &ksegrp0, &thread0); - proc0.p_uarea = (struct user *) proc0_uarea.pv_va; thread0.td_kstack = kernelstack.pv_va; thread0.td_pcb = (struct pcb *) (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; diff --git a/sys/arm/xscale/i80321/iq31244_machdep.c b/sys/arm/xscale/i80321/iq31244_machdep.c index 0f9093b..4e58334 100644 --- a/sys/arm/xscale/i80321/iq31244_machdep.c +++ b/sys/arm/xscale/i80321/iq31244_machdep.c @@ -198,7 +198,6 @@ void * initarm(void *arg, void *arg2) { struct pv_addr kernel_l1pt; - struct pv_addr proc0_uarea; int loop; u_int kerneldatasize, symbolsize; u_int l1pagetable; @@ -298,9 +297,6 @@ initarm(void *arg, void *arg2) * this to work (which is supposed to be the case). */ - /* Allocate pages for process 0 kernel stack and uarea */ - valloc_pages(proc0_uarea, UAREA_PAGES); - /* * Now we start construction of the L1 page table * We start by mapping the L2 page tables into the L1. @@ -333,8 +329,6 @@ initarm(void *arg, void *arg2) UND_STACK_SIZE * PAGE_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE); pmap_map_chunk(l1pagetable, kernelstack.pv_va, kernelstack.pv_pa, KSTACK_PAGES * PAGE_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE); - pmap_map_chunk(l1pagetable, proc0_uarea.pv_va, proc0_uarea.pv_pa, - UAREA_PAGES * PAGE_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE); pmap_map_chunk(l1pagetable, msgbufpv.pv_va, msgbufpv.pv_pa, MSGBUF_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE); @@ -405,7 +399,6 @@ initarm(void *arg, void *arg2) undefined_init(); proc_linkup(&proc0, &ksegrp0, &thread0); - proc0.p_uarea = (struct user *) proc0_uarea.pv_va; thread0.td_kstack = kernelstack.pv_va; thread0.td_pcb = (struct pcb *) (thread0.td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1; |