summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorcognet <cognet@FreeBSD.org>2006-05-10 13:39:10 +0000
committercognet <cognet@FreeBSD.org>2006-05-10 13:39:10 +0000
commit627a93886fab95c270bab6b888d5db5d413075cc (patch)
tree5e47e945d59785a3d7a98dc912feb41955baf784 /sys/arm
parent5af5ea6363c20ced9df55a3335eb9f90f3ec26bc (diff)
downloadFreeBSD-src-627a93886fab95c270bab6b888d5db5d413075cc.zip
FreeBSD-src-627a93886fab95c270bab6b888d5db5d413075cc.tar.gz
Move the call to cpu_setup() before the call to vm_ksubmap_init().
vm_ksubmap_init() calls pmap_copy_page(), which uses the mini data cache to do the copy, but we're running uncaching before cpu_setup(). For some reason it hasn't been a problem so far, but it is for the PXA255. Spotted out by: benno
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/arm/machdep.c b/sys/arm/arm/machdep.c
index 4e0e188..83d9e51 100644
--- a/sys/arm/arm/machdep.c
+++ b/sys/arm/arm/machdep.c
@@ -232,6 +232,7 @@ cpu_startup(void *dummy)
vm_page_t m;
#endif
+ cpu_setup("");
vm_ksubmap_init(&kmi);
bufinit();
vm_pager_bufferinit();
@@ -241,7 +242,6 @@ cpu_startup(void *dummy)
USPACE_SVC_STACK_TOP;
vector_page_setprot(VM_PROT_READ);
pmap_set_pcb_pagedir(pmap_kernel(), pcb);
- cpu_setup("");
identify_arm_cpu();
thread0.td_frame = (struct trapframe *)pcb->un_32.pcb32_sp - 1;
pmap_postinit();
OpenPOWER on IntegriCloud