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
This commit is contained in:
tsutsui 2011-11-15 10:57:00 +00:00
parent f7eabaaeb3
commit e179a96fd3
14 changed files with 25 additions and 122 deletions

View File

@ -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 @@ ENTRY(getsp)
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.
*

View File

@ -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 @@ ENTRY_NOPROFILE(getsp)
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.
*

View File

@ -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 @@ Lsldone:
rts
#endif
ENTRY_NOPROFILE(getsfc)
movc %sfc,%d0
rts
ENTRY_NOPROFILE(getdfc)
movc %dfc,%d0
rts
/*
* Load a new user segment table pointer.
*/

View File

@ -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 @@ ENTRY(ecacheoff)
Lnocache8:
rts
ENTRY_NOPROFILE(getsfc)
movc %sfc,%d0
rts
ENTRY_NOPROFILE(getdfc)
movc %dfc,%d0
rts
/*
* Load a new user segment table pointer.
*/

View File

@ -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(ecacheon)
ENTRY(ecacheoff)
rts
ENTRY_NOPROFILE(getsfc)
movc %sfc,%d0
rts
ENTRY_NOPROFILE(getdfc)
movc %dfc,%d0
rts
/*
* Load a new user segment table pointer.
*/

View File

@ -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 @@ ENTRY(longjmp)
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

View File

@ -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(ecacheon)
ENTRY(ecacheoff)
rts
ENTRY_NOPROFILE(getsfc)
movc %sfc,%d0
rts
ENTRY_NOPROFILE(getdfc)
movc %dfc,%d0
rts
/*
* Load a new user segment table pointer.
*/

View File

@ -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 @@ ENTRY_NOPROFILE(getsp)
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.
*/

View File

@ -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 @@ ENTRY(ecacheoff)
Lnocache8:
rts
ENTRY_NOPROFILE(getsfc)
movc %sfc,%d0
rts
ENTRY_NOPROFILE(getdfc)
movc %dfc,%d0
rts
/*
* Load a new user segment table pointer.
*/

View File

@ -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 @@ Lnocache8:
rts
#endif
ENTRY_NOPROFILE(getsfc)
movc %sfc,%d0
rts
ENTRY_NOPROFILE(getdfc)
movc %dfc,%d0
rts
/*
* Load a new user segment table pointer.
*/

View File

@ -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 @@ GLOBAL(getsp)
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__

View File

@ -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 @@ GLOBAL(getsp)
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

View File

@ -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 @@ GLOBAL(getsp)
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,%d0
movl %d0,%a0

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.105 2011/11/04 17:51:54 tsutsui Exp $ */
/* $NetBSD: locore.s,v 1.106 2011/11/15 10:57:04 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -1019,14 +1019,6 @@ ENTRY(ecacheon)
ENTRY(ecacheoff)
rts
ENTRY_NOPROFILE(getsfc)
movc %sfc,%d0
rts
ENTRY_NOPROFILE(getdfc)
movc %dfc,%d0
rts
/*
* Load a new user segment table pointer.
*/