Use common m68k sigcode.

This commit is contained in:
thorpej 1997-04-13 02:37:15 +00:00
parent 434a6008fe
commit f05b58b229
7 changed files with 24 additions and 187 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.77 1997/04/09 19:29:05 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.78 1997/04/13 02:37:15 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -1091,33 +1091,10 @@ _proc_trampoline:
addql #8,sp | pop sp and stack adjust
jra rei | all done
/*
* Signal "trampoline" code (18 bytes). Invoked from RTE setup by sendsig().
*
* Stack looks like:
*
* sp+0 -> signal number
* sp+4 signal specific code
* sp+8 pointer to signal context frame (scp)
* sp+12 address of handler
* sp+16 saved hardware state
* .
* .
* scp+0-> beginning of signal context frame
* Use common m68k sigcode.
*/
.globl _sigcode, _esigcode
.data
_sigcode:
movl sp@(12),a0 | signal handler addr (4 bytes)
jsr a0@ | call signal handler (2 bytes)
addql #4,sp | pop signo (2 bytes)
trap #1 | special syscall entry (2 bytes)
movl d0,sp@(4) | save errno (4 bytes)
moveq #1,d0 | syscall == exit (2 bytes)
trap #0 | exit(errno) (2 bytes)
.align 2
_esigcode:
#include <m68k/m68k/sigcode.s>
/*
* Primitives

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.35 1997/04/09 19:39:14 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.36 1997/04/13 02:37:20 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -957,31 +957,9 @@ _proc_trampoline:
jra rei | all done
/*
* Signal "trampoline" code (18 bytes). Invoked from RTE setup by sendsig().
*
* Stack looks like:
*
* sp+0 -> signal number
* sp+4 signal specific code
* sp+8 pointer to signal context frame (scp)
* sp+12 address of handler
* sp+16 saved hardware state
* .
* .
* scp+0-> beginning of signal context frame
* Use common m68k sigcode.
*/
.globl _sigcode, _esigcode
.data
_sigcode:
movl sp@(12),a0 | signal handler addr (4 bytes)
jsr a0@ | call signal handler (2 bytes)
addql #4,sp | pop signo (2 bytes)
trap #1 | special syscall entry (2 bytes)
movl d0,sp@(4) | save errno (4 bytes)
moveq #1,d0 | syscall == exit (2 bytes)
trap #0 | exit(errno) (2 bytes)
.align 2
_esigcode:
#include <m68k/m68k/sigcode.s>
/*
* Primitives

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.68 1997/04/09 20:03:21 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.69 1997/04/13 02:37:23 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995 Gordon W. Ross
@ -1106,32 +1106,9 @@ Ldorte:
rte | real return
/*
* Signal "trampoline" code (18 bytes). Invoked from RTE setup by sendsig().
*
* Stack looks like:
*
* sp+0 -> signal number
* sp+4 signal specific code
* sp+8 pointer to signal context frame (scp)
* sp+12 address of handler
* sp+16 saved hardware state
* .
* .
* scp+0-> beginning of signal context frame
* Use common m68k sigcode.
*/
.globl _sigcode, _esigcode, _sigcodetrap
.data
_sigcode:
movl sp@(12),a0 | signal handler addr (4 bytes)
jsr a0@ | call signal handler (2 bytes)
addql #4,sp | pop signo (2 bytes)
_sigcodetrap:
trap #1 | special syscall entry (2 bytes)
movl d0,sp@(4) | save errno (4 bytes)
moveq #1,d0 | syscall == exit (2 bytes)
trap #0 | exit(errno) (2 bytes)
.align 2
_esigcode:
#include <m68k/m68k/sigcode.s>
/*
* Primitives

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.49 1997/04/09 20:43:52 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.50 1997/04/13 02:37:25 thorpej Exp $ */
/*
* Copyright (c) 1994, 1995 Gordon W. Ross
@ -700,35 +700,11 @@ Ldorte:
*/
/*
* Signal "trampoline" code (18 bytes). Invoked from RTE setup by sendsig().
*
* Stack looks like:
*
* sp+0 -> signal number
* sp+4 signal specific code
* sp+8 pointer to signal context frame (scp)
* sp+12 address of handler
* sp+16 saved hardware state
* .
* .
* scp+0-> beginning of signal context frame
* Use common m68k sigcode.
*/
.globl _sigcode, _esigcode
.data
.align 2
_sigcode: /* Found at address: 0x0DFFffdc */
movl sp@(12),a0 | signal handler addr (4 bytes)
jsr a0@ | call signal handler (2 bytes)
addql #4,sp | pop signo (2 bytes)
trap #1 | special syscall entry (2 bytes)
movl d0,sp@(4) | save errno (4 bytes)
moveq #1,d0 | syscall == exit (2 bytes)
trap #0 | exit(errno) (2 bytes)
.align 2
_esigcode:
.text
#include <m68k/m68k/sigcode.s>
/* XXX - hp300 still has icode here... */
.text
/*
* Primitives

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.15 1997/04/09 20:58:33 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.16 1997/04/13 02:37:27 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -720,35 +720,11 @@ Ldorte:
*/
/*
* Signal "trampoline" code (18 bytes). Invoked from RTE setup by sendsig().
*
* Stack looks like:
*
* sp+0 -> signal number
* sp+4 signal specific code
* sp+8 pointer to signal context frame (scp)
* sp+12 address of handler
* sp+16 saved hardware state
* .
* .
* scp+0-> beginning of signal context frame
* Use common m68k sigcode.
*/
.globl _sigcode, _esigcode
.data
.align 2
_sigcode: /* Found at address: 0x0DFFffdc */
movl sp@(12),a0 | signal handler addr (4 bytes)
jsr a0@ | call signal handler (2 bytes)
addql #4,sp | pop signo (2 bytes)
trap #1 | special syscall entry (2 bytes)
movl d0,sp@(4) | save errno (4 bytes)
moveq #1,d0 | syscall == exit (2 bytes)
trap #0 | exit(errno) (2 bytes)
.align 2
_esigcode:
.text
#include <m68k/m68k/sigcode.s>
/* XXX - hp300 still has icode here... */
.text
/*
* Primitives

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.15 1997/04/09 20:58:33 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.16 1997/04/13 02:37:27 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -720,35 +720,11 @@ Ldorte:
*/
/*
* Signal "trampoline" code (18 bytes). Invoked from RTE setup by sendsig().
*
* Stack looks like:
*
* sp+0 -> signal number
* sp+4 signal specific code
* sp+8 pointer to signal context frame (scp)
* sp+12 address of handler
* sp+16 saved hardware state
* .
* .
* scp+0-> beginning of signal context frame
* Use common m68k sigcode.
*/
.globl _sigcode, _esigcode
.data
.align 2
_sigcode: /* Found at address: 0x0DFFffdc */
movl sp@(12),a0 | signal handler addr (4 bytes)
jsr a0@ | call signal handler (2 bytes)
addql #4,sp | pop signo (2 bytes)
trap #1 | special syscall entry (2 bytes)
movl d0,sp@(4) | save errno (4 bytes)
moveq #1,d0 | syscall == exit (2 bytes)
trap #0 | exit(errno) (2 bytes)
.align 2
_esigcode:
.text
#include <m68k/m68k/sigcode.s>
/* XXX - hp300 still has icode here... */
.text
/*
* Primitives

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.15 1997/04/09 21:04:49 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.16 1997/04/13 02:37:29 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -1212,32 +1212,9 @@ _proc_trampoline:
jra rei | and return
/*
* Signal "trampoline" code (18 bytes). Invoked from RTE setup by sendsig().
*
* Stack looks like:
*
* sp+0 -> signal number
* sp+4 signal specific code
* sp+8 pointer to signal context frame (scp)
* sp+12 address of handler
* sp+16 saved hardware state
* .
* .
* scp+0-> beginning of signal context frame
* Use common m68k sigcode.
*/
.globl _sigcode, _esigcode, _sigcodetrap
.data
_sigcode:
movl sp@(12),a0 | signal handler addr (4 bytes)
jsr a0@ | call signal handler (2 bytes)
addql #4,sp | pop signo (2 bytes)
_sigcodetrap:
trap #1 | special syscall entry (2 bytes)
movl d0,sp@(4) | save errno (4 bytes)
moveq #1,d0 | syscall == exit (2 bytes)
trap #0 | exit(errno) (2 bytes)
.align 2
_esigcode:
#include <m68k/m68k/sigcode.s>
/*
* Primitives