Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sun3/sun3 don't duplicate definitions



details:   https://anonhg.NetBSD.org/src/rev/59cbd46d867f
branches:  trunk
changeset: 791175:59cbd46d867f
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Nov 07 17:50:02 2013 +0000

description:
don't duplicate definitions

diffstat:

 sys/arch/sun3/sun3/locore.s |  17 ++++-------------
 1 files changed, 4 insertions(+), 13 deletions(-)

diffs (54 lines):

diff -r 5cb60868913a -r 59cbd46d867f sys/arch/sun3/sun3/locore.s
--- a/sys/arch/sun3/sun3/locore.s       Thu Nov 07 17:26:13 2013 +0000
+++ b/sys/arch/sun3/sun3/locore.s       Thu Nov 07 17:50:02 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.96 2013/09/07 15:56:11 tsutsui Exp $      */
+/*     $NetBSD: locore.s,v 1.97 2013/11/07 17:50:02 christos Exp $     */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -446,12 +446,6 @@
  *   %d0,%d1,%a0,%a1, sr, pc, vo
  */
 
-#define INTERRUPT_SAVEREG \
-       moveml  #0xC0C0,%sp@-
-
-#define INTERRUPT_RESTORE \
-       moveml  %sp@+,#0x0303
-
 /*
  * This is the common auto-vector interrupt handler,
  * for which the CPU provides the vector=0x18+level.
@@ -465,7 +459,7 @@
 GLOBAL(_isr_autovec)
        INTERRUPT_SAVEREG
        jbsr    _C_LABEL(isr_autovec)
-       INTERRUPT_RESTORE
+       INTERRUPT_RESTOREREG
        jra     _ASM_LABEL(rei)
 
 /* clock: see clock.c */
@@ -477,7 +471,7 @@
 GLOBAL(_isr_clock)
        INTERRUPT_SAVEREG
        jbsr    _C_LABEL(clock_intr)
-       INTERRUPT_RESTORE
+       INTERRUPT_RESTOREREG
        jra     _ASM_LABEL(rei)
 
 | Handler for all vectored interrupts (i.e. VME interrupts)
@@ -489,12 +483,9 @@
 GLOBAL(_isr_vectored)
        INTERRUPT_SAVEREG
        jbsr    _C_LABEL(isr_vectored)
-       INTERRUPT_RESTORE
+       INTERRUPT_RESTOREREG
        jra     _ASM_LABEL(rei)
 
-#undef INTERRUPT_SAVEREG
-#undef INTERRUPT_RESTORE
-
 /* interrupt counters (needed by vmstat) */
 GLOBAL(intrnames)
        .asciz  "spur"  | 0



Home | Main Index | Thread Index | Old Index