Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Move spread getsfc() and getdfc() functions into co...



details:   https://anonhg.NetBSD.org/src/rev/4001e51a77e0
branches:  trunk
changeset: 771229:4001e51a77e0
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Nov 15 10:57:00 2011 +0000

description:
Move spread getsfc() and getdfc() functions into common m68k/support.s.

Note:
- ENTRY_NOPROFILE() is okay since they are used only for debug printf
- they are declared to return int so no need to put a return value into %a0

diffstat:

 sys/arch/amiga/amiga/locore.s     |   9 +--------
 sys/arch/atari/atari/locore.s     |   9 +--------
 sys/arch/cesfic/cesfic/locore.s   |  10 +---------
 sys/arch/hp300/hp300/locore.s     |  10 +---------
 sys/arch/luna68k/luna68k/locore.s |  10 +---------
 sys/arch/m68k/m68k/support.s      |  13 ++++++++++++-
 sys/arch/mac68k/mac68k/locore.s   |  10 +---------
 sys/arch/mvme68k/mvme68k/locore.s |  12 +-----------
 sys/arch/news68k/news68k/locore.s |  10 +---------
 sys/arch/next68k/next68k/locore.s |  10 +---------
 sys/arch/sun2/sun2/locore.s       |  10 +---------
 sys/arch/sun3/sun3/locore.s       |  12 +-----------
 sys/arch/sun3/sun3x/locore.s      |  12 +-----------
 sys/arch/x68k/x68k/locore.s       |  10 +---------
 14 files changed, 25 insertions(+), 122 deletions(-)

diffs (truncated from 340 to 300 lines):

diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/amiga/amiga/locore.s
--- a/sys/arch/amiga/amiga/locore.s     Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/amiga/amiga/locore.s     Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.152 2011/02/08 20:20:08 rmind Exp $       */
+/*     $NetBSD: locore.s,v 1.153 2011/11/15 10:57:00 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1144,13 +1144,6 @@
        movl    %d0,%a0                         | Comply with ELF ABI
        rts
 
-ENTRY(getsfc)
-       movc    %sfc,%d0
-       rts
-ENTRY(getdfc)
-       movc    %dfc,%d0
-       rts
-
 /*
  * Check out a virtual address to see if it's okay to write to.
  *
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/atari/atari/locore.s
--- a/sys/arch/atari/atari/locore.s     Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/atari/atari/locore.s     Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.108 2011/02/08 20:20:09 rmind Exp $       */
+/*     $NetBSD: locore.s,v 1.109 2011/11/15 10:57:01 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1166,13 +1166,6 @@
        addql   #4,%d0                  |  compensate for return address
        rts
 
-ENTRY_NOPROFILE(getsfc)
-       movc    %sfc,%d0
-       rts
-ENTRY_NOPROFILE(getdfc)
-       movc    %dfc,%d0
-       rts
-
 /*
  * Check out a virtual address to see if it's okay to write to.
  *
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/cesfic/cesfic/locore.s
--- a/sys/arch/cesfic/cesfic/locore.s   Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/cesfic/cesfic/locore.s   Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.25 2010/12/27 15:39:07 tsutsui Exp $      */
+/*     $NetBSD: locore.s,v 1.26 2011/11/15 10:57:02 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -989,14 +989,6 @@
        rts
 #endif
 
-ENTRY_NOPROFILE(getsfc)
-       movc    %sfc,%d0
-       rts
-
-ENTRY_NOPROFILE(getdfc)
-       movc    %dfc,%d0
-       rts
-
 /*
  * Load a new user segment table pointer.
  */
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/hp300/hp300/locore.s
--- a/sys/arch/hp300/hp300/locore.s     Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/hp300/hp300/locore.s     Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.162 2011/11/05 15:21:43 tsutsui Exp $     */
+/*     $NetBSD: locore.s,v 1.163 2011/11/15 10:57:02 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -1278,14 +1278,6 @@
 Lnocache8:
        rts
 
-ENTRY_NOPROFILE(getsfc)
-       movc    %sfc,%d0
-       rts
-
-ENTRY_NOPROFILE(getdfc)
-       movc    %dfc,%d0
-       rts
-
 /*
  * Load a new user segment table pointer.
  */
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/luna68k/luna68k/locore.s
--- a/sys/arch/luna68k/luna68k/locore.s Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/luna68k/luna68k/locore.s Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.43 2011/11/12 13:44:26 tsutsui Exp $ */
+/* $NetBSD: locore.s,v 1.44 2011/11/15 10:57:02 tsutsui Exp $ */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -956,14 +956,6 @@
 ENTRY(ecacheoff)
        rts
 
-ENTRY_NOPROFILE(getsfc)
-       movc    %sfc,%d0
-       rts
-
-ENTRY_NOPROFILE(getdfc)
-       movc    %dfc,%d0
-       rts
-
 /*
  * Load a new user segment table pointer.
  */
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/m68k/m68k/support.s
--- a/sys/arch/m68k/m68k/support.s      Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/m68k/m68k/support.s      Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: support.s,v 1.6 2011/02/08 20:20:16 rmind Exp $        */
+/*     $NetBSD: support.s,v 1.7 2011/11/15 10:57:02 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -65,3 +65,14 @@
        movl    %a0@,%sp@
        moveq   #1,%d0
        rts
+
+/*
+ * fetch registers for debugger
+ */
+ENTRY_NOPROFILE(getsfc)
+       movc    %sfc,%d0
+       rts
+
+ENTRY_NOPROFILE(getdfc)
+       movc    %dfc,%d0
+       rts
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/mac68k/mac68k/locore.s
--- a/sys/arch/mac68k/mac68k/locore.s   Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/mac68k/mac68k/locore.s   Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.163 2011/02/08 20:20:18 rmind Exp $       */
+/*     $NetBSD: locore.s,v 1.164 2011/11/15 10:57:03 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1014,14 +1014,6 @@
 ENTRY(ecacheoff)
        rts
 
-ENTRY_NOPROFILE(getsfc)
-       movc    %sfc,%d0
-       rts
-
-ENTRY_NOPROFILE(getdfc)
-       movc    %dfc,%d0
-       rts
-
 /*
  * Load a new user segment table pointer.
  */
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/mvme68k/mvme68k/locore.s
--- a/sys/arch/mvme68k/mvme68k/locore.s Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/mvme68k/mvme68k/locore.s Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.107 2011/02/08 20:20:20 rmind Exp $       */
+/*     $NetBSD: locore.s,v 1.108 2011/11/15 10:57:03 tsutsui Exp $     */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1265,16 +1265,6 @@
        movl    %d0,%a0
        rts
 
-ENTRY_NOPROFILE(getsfc)
-       movc    %sfc,%d0
-       movl    %d0,%a0
-       rts
-
-ENTRY_NOPROFILE(getdfc)
-       movc    %dfc,%d0
-       movl    %d0,%a0
-       rts
-
 /*
  * Load a new user segment table pointer.
  */
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/news68k/news68k/locore.s
--- a/sys/arch/news68k/news68k/locore.s Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/news68k/news68k/locore.s Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.58 2011/11/03 14:57:43 tsutsui Exp $      */
+/*     $NetBSD: locore.s,v 1.59 2011/11/15 10:57:03 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -1001,14 +1001,6 @@
 Lnocache8:
        rts
 
-ENTRY_NOPROFILE(getsfc)
-       movc    %sfc,%d0
-       rts
-
-ENTRY_NOPROFILE(getdfc)
-       movc    %dfc,%d0
-       rts
-
 /*
  * Load a new user segment table pointer.
  */
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/next68k/next68k/locore.s
--- a/sys/arch/next68k/next68k/locore.s Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/next68k/next68k/locore.s Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.58 2010/12/27 15:39:07 tsutsui Exp $      */
+/*     $NetBSD: locore.s,v 1.59 2011/11/15 10:57:03 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1998 Darrin B. Jewell
@@ -1155,14 +1155,6 @@
        rts
 #endif
 
-ENTRY_NOPROFILE(getsfc)
-       movc    %sfc,%d0
-       rts
-
-ENTRY_NOPROFILE(getdfc)
-       movc    %dfc,%d0
-       rts
-
 /*
  * Load a new user segment table pointer.
  */
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/sun2/sun2/locore.s
--- a/sys/arch/sun2/sun2/locore.s       Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/sun2/sun2/locore.s       Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.23 2010/02/25 07:21:20 skrll Exp $        */
+/*     $NetBSD: locore.s,v 1.24 2011/11/15 10:57:04 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -577,14 +577,6 @@
        addql   #4,%d0                  | compensate for return address
        rts
 
-ENTRY(getsfc)
-       movc    %sfc,%d0
-       rts
-
-ENTRY(getdfc)
-       movc    %dfc,%d0
-       rts
-
 ENTRY(getvbr)
        movc    %vbr,%d0
 #ifdef __ELF__
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/sun3/sun3/locore.s
--- a/sys/arch/sun3/sun3/locore.s       Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/sun3/sun3/locore.s       Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.93 2010/10/15 15:55:53 tsutsui Exp $      */
+/*     $NetBSD: locore.s,v 1.94 2011/11/15 10:57:04 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1980, 1990, 1993
@@ -646,16 +646,6 @@
        movl    %d0,%a0
        rts
 
-ENTRY(getsfc)
-       movc    %sfc,%d0
-       movl    %d0,%a0
-       rts
-
-ENTRY(getdfc)
-       movc    %dfc,%d0
-       movl    %d0,%a0
-       rts
-
 ENTRY(getvbr)
        movc    %vbr,%a0
        rts
diff -r b425199d2b03 -r 4001e51a77e0 sys/arch/sun3/sun3x/locore.s
--- a/sys/arch/sun3/sun3x/locore.s      Tue Nov 15 07:43:37 2011 +0000
+++ b/sys/arch/sun3/sun3x/locore.s      Tue Nov 15 10:57:00 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.62 2011/02/08 20:20:25 rmind Exp $        */
+/*     $NetBSD: locore.s,v 1.63 2011/11/15 10:57:04 tsutsui Exp $      */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -626,16 +626,6 @@



Home | Main Index | Thread Index | Old Index