Clarify comment a bit and skip userret when flushing CPU caches in SunOS emul.
authorbriggs <briggs@openbsd.org>
Tue, 8 Apr 1997 13:55:56 +0000 (13:55 +0000)
committerbriggs <briggs@openbsd.org>
Tue, 8 Apr 1997 13:55:56 +0000 (13:55 +0000)
sys/arch/atari/atari/trap.c
sys/arch/mac68k/mac68k/trap.c
sys/arch/mvme68k/mvme68k/trap.c

index 9055e0a..d650a03 100644 (file)
@@ -617,13 +617,12 @@ trap(type, code, v, frame)
                /*
                 * SunOS uses Trap #2 for a "CPU cache flush"
                 * Just flush the on-chip caches and return.
-                * XXX - Too bad OpenBSD uses trap 2...
+                * XXX - Too bad m68k BSD uses trap 2...
                 */
                if (p->p_emul == &emul_sunos) {
                        ICIA();
                        DCIU();
                        /* get out fast */
-                       userret(p, frame.f_pc, sticks); 
                        return;
 #endif
                frame.f_sr &= ~PSL_T;
index 9af660a..5903f72 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: trap.c,v 1.10 1997/04/08 02:53:27 gene Exp $  */
+/*     $OpenBSD: trap.c,v 1.11 1997/04/08 13:55:59 briggs Exp $        */
 /*     $NetBSD: trap.c,v 1.46 1997/04/07 22:54:44 scottr Exp $ */
 
 /*
@@ -464,13 +464,13 @@ copyfault:
                /*
                 * SunOS uses Trap #2 for a "CPU cache flush"
                 * Just flush the on-chip caches and return.
-                * XXX - Too bad NetBSD uses trap 2...
+                * XXX - Too bad m68k BSD uses trap 2...
                 */
                if (p->p_emul == &emul_sunos) {
                        ICIA();
                        DCIU();
                        /* get out fast */
-                       goto done;
+                       return;
                }
 #endif
                frame.f_sr &= ~PSL_T;
index 7dfa8b2..f27ccad 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: trap.c,v 1.17 1997/04/08 05:14:52 briggs Exp $ */
+/*     $OpenBSD: trap.c,v 1.18 1997/04/08 13:55:57 briggs Exp $ */
 
 /*
  * Copyright (c) 1995 Theo de Raadt
@@ -477,13 +477,12 @@ copyfault:
                /*
                 * SunOS uses Trap #2 for a "CPU cache flush"
                 * Just flush the on-chip caches and return.
-                * XXX - Too bad OpenBSD uses trap 2...
+                * XXX - Too bad m68k BSD uses trap 2...
                 */
                if (p->p_emul == &emul_sunos) {
                        ICIA();
                        DCIU();
                        /* get out fast */
-                       userret(p, &frame, sticks, v, 1);
                        return;
                }
 #endif