summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-02-20 06:30:04 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-02-20 06:30:04 +0000
commitc13adeb0bed820115cebb62a8f60b0cc634ee48d (patch)
tree80fab09ef8aa98c3808fc5ccab8fa3ca16801c9d /sys/arch
parent6c9dc385d64e3ad0b2c86c42f505fb7edfa965ba (diff)
gratituous compatibility with NetBSD
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sun3/sun3/locore.s13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/arch/sun3/sun3/locore.s b/sys/arch/sun3/sun3/locore.s
index 069ac76346d..44652d4fd22 100644
--- a/sys/arch/sun3/sun3/locore.s
+++ b/sys/arch/sun3/sun3/locore.s
@@ -1,4 +1,4 @@
-/* $OpenBSD: locore.s,v 1.16 1997/02/20 06:17:03 kstailey Exp $ */
+/* $OpenBSD: locore.s,v 1.17 1997/02/20 06:30:03 kstailey Exp $ */
/* $NetBSD: locore.s,v 1.40 1996/11/06 20:19:54 cgd Exp $ */
/*
@@ -92,7 +92,6 @@ L_per_pmeg:
| Kernel is now double mapped at zero and KERNBASE.
| Force a long jump to the relocated code (high VA).
-
movl #IC_CLEAR, d0 | Flush the I-cache
movc d0, cacr
jmp L_high_code:l | long jump
@@ -1035,7 +1034,7 @@ Lsw2:
movl a0,_curproc
clrl _want_resched
#ifdef notyet
- movl sp@+,a1
+ movl sp@+,a1 | XXX - Make this work!
cmpl a0,a1 | switching to same proc?
jeq Lswdone | yes, skip save and restore
#endif
@@ -1083,11 +1082,13 @@ Lswnofpsave:
| Important note: We MUST call pmap_activate to set the
| MMU context register (like setting a root table pointer).
+| XXX - Eventually, want to do that here, inline.
lea a2@(VM_PMAP),a2 | pmap = &vmspace.vm_pmap
pea a2@ | push pmap
jbsr _pmap_activate | pmap_activate(pmap)
addql #4,sp
movl _curpcb,a1 | restore p_addr
+| Note: pmap_activate will clear the cache if needed.
/*
* Reload the registers for the new process.
@@ -1158,8 +1159,8 @@ ENTRY(ICIA)
ENTRY(DCIU)
rts
-/* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP, PCIA */
-/* ecacheon, ecacheoff */
+/* ICPL, ICPP, DCPL, DCPP, DCPA, DCFL, DCFP */
+/* PCIA, ecacheon, ecacheoff */
/*
* Get callers current SP value.
@@ -1239,8 +1240,6 @@ ENTRY(_remque)
/*
* Save and restore 68881 state.
- * Pretty awful looking since our assembler does not
- * recognize FP mnemonics.
*/
ENTRY(m68881_save)
movl sp@(4),a0 | save area pointer