diff options
author | Marcus Watts <mdw@cvs.openbsd.org> | 2003-05-17 07:45:55 +0000 |
---|---|---|
committer | Marcus Watts <mdw@cvs.openbsd.org> | 2003-05-17 07:45:55 +0000 |
commit | e3821f81fe12198b0127c76988ffd2a9a12708fb (patch) | |
tree | 232132355b9a802bbdf08a8a0dfcb1c50538b9d8 | |
parent | a62f236294a309d37e2a9754ea9fb9743e991884 (diff) |
All sun ultrasparcs have 8192 contexts.
ultrasparc IIIcu puts other stuff in formerly reserved fields of context registers.
-rw-r--r-- | sys/arch/sparc64/sparc64/locore.s | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s index e4bdf5d755a..75cb16ce643 100644 --- a/sys/arch/sparc64/sparc64/locore.s +++ b/sys/arch/sparc64/sparc64/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.36 2003/05/17 07:24:11 art Exp $ */ +/* $OpenBSD: locore.s,v 1.37 2003/05/17 07:45:54 mdw Exp $ */ /* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */ /* @@ -3995,16 +3995,11 @@ dostart: * Ready to run C code; finish bootstrap. */ set CTX_SECONDARY, %o1 ! Store -1 in the context register - mov -1, %o2 - stxa %o2, [%o1] ASI_DMMU - membar #Sync - ldxa [%o1] ASI_DMMU, %o0 ! then read it back - membar #Sync + set 0x2000,%o0 ! fixed: 8192 contexts stxa %g0, [%o1] ASI_DMMU membar #Sync - clr %g4 ! Clear data segment pointer call _C_LABEL(bootstrap) - inc %o0 ! and add 1 to discover maxctx + clr %g4 ! Clear data segment pointer /* * pmap_bootstrap should have allocated a stack for proc 0 and |