Use _C_LABEL() to generate C labels.
This commit is contained in:
parent
0c3c6dabb8
commit
d5bc168ba9
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: _setjmp.S,v 1.3 1997/04/25 00:58:41 thorpej Exp $ */
|
||||
/* $NetBSD: _setjmp.S,v 1.4 1998/07/01 06:44:14 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -43,7 +43,7 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)_setjmp.s 5.1 (Berkeley) 5/12/90")
|
||||
#else
|
||||
RCSID("$NetBSD: _setjmp.S,v 1.3 1997/04/25 00:58:41 thorpej Exp $")
|
||||
RCSID("$NetBSD: _setjmp.S,v 1.4 1998/07/01 06:44:14 thorpej Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -88,5 +88,5 @@ ok:
|
||||
rts
|
||||
|
||||
botch:
|
||||
jbsr _longjmperror
|
||||
jbsr _C_LABEL(longjmperror)
|
||||
stop #0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: setjmp.S,v 1.7 1997/12/05 02:09:49 thorpej Exp $ */
|
||||
/* $NetBSD: setjmp.S,v 1.8 1998/07/01 06:44:14 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -43,7 +43,7 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)setjmp.s 5.1 (Berkeley) 5/12/90")
|
||||
#else
|
||||
RCSID("$NetBSD: setjmp.S,v 1.7 1997/12/05 02:09:49 thorpej Exp $")
|
||||
RCSID("$NetBSD: setjmp.S,v 1.8 1998/07/01 06:44:14 thorpej Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -62,9 +62,9 @@ ENTRY(setjmp)
|
||||
subl #12,sp /* space for sigstack args/rvals */
|
||||
clrl sp@ /* don't change it... */
|
||||
movl sp,sp@(4) /* ...but return the current val */
|
||||
jbsr ___sigaltstack14 /* note: flags returned in sp@(8) */
|
||||
jbsr _C_LABEL(__sigaltstack14) /* note: flags returned in sp@(8) */
|
||||
clrl sp@ /* don't change mask, just return */
|
||||
jbsr _sigblock /* old value */
|
||||
jbsr _C_LABEL(sigblock) /* old value */
|
||||
movl sp@(8),d1 /* old flags value */
|
||||
andl #1,d1 /* extract onstack flag */
|
||||
addl #12,sp
|
||||
@ -91,8 +91,8 @@ ENTRY(longjmp)
|
||||
ok:
|
||||
moveml a0@(28),#0x3CFC /* restore non-scratch regs */
|
||||
movl a0,sp@- /* let sigreturn */
|
||||
jbsr _sigreturn /* finish for us */
|
||||
jbsr _C_LABEL(sigreturn) /* finish for us */
|
||||
|
||||
botch:
|
||||
jbsr _longjmperror
|
||||
jbsr _C_LABEL(longjmperror)
|
||||
stop #0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sigsetjmp.S,v 1.3 1997/04/25 00:59:00 thorpej Exp $ */
|
||||
/* $NetBSD: sigsetjmp.S,v 1.4 1998/07/01 06:44:14 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -43,7 +43,7 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)_setjmp.s 5.1 (Berkeley) 5/12/90")
|
||||
#else
|
||||
RCSID("$NetBSD: sigsetjmp.S,v 1.3 1997/04/25 00:59:00 thorpej Exp $")
|
||||
RCSID("$NetBSD: sigsetjmp.S,v 1.4 1998/07/01 06:44:14 thorpej Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -67,15 +67,15 @@ ENTRY(sigsetjmp)
|
||||
movl d1,a0@(_JBLEN * 4 ) /* save at end of area */
|
||||
tstl d1
|
||||
bne dosig
|
||||
jra __setjmp
|
||||
jra _C_LABEL(_setjmp)
|
||||
dosig:
|
||||
jra _setjmp
|
||||
jra _C_LABEL(setjmp)
|
||||
|
||||
|
||||
ENTRY(siglongjmp)
|
||||
movl sp@(4),a0 /* save area pointer */
|
||||
tstl a0@(_JBLEN * 4) /* check mask... */
|
||||
bne didsig
|
||||
jra __longjmp
|
||||
jra _C_LABEL(_longjmp)
|
||||
didsig:
|
||||
jra _longjmp
|
||||
jra _C_LABEL(longjmp)
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: Ovfork.S,v 1.5 1995/12/13 22:17:46 thorpej Exp $ */
|
||||
/* $NetBSD: Ovfork.S,v 1.6 1998/07/01 06:44:14 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -43,7 +43,7 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)Ovfork.s 5.1 (Berkeley) 5/12/90")
|
||||
#else
|
||||
RCSID("$NetBSD: Ovfork.S,v 1.5 1995/12/13 22:17:46 thorpej Exp $")
|
||||
RCSID("$NetBSD: Ovfork.S,v 1.6 1998/07/01 06:44:14 thorpej Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -72,14 +72,14 @@ ENTRY(vfork)
|
||||
andl d1,d0
|
||||
jmp a0@
|
||||
err:
|
||||
.globl _errno
|
||||
.globl _C_LABEL(errno)
|
||||
#ifdef PIC
|
||||
movel #__GLOBAL_OFFSET_TABLE_,a1
|
||||
movel #_C_LABEL(_GLOBAL_OFFSET_TABLE_),a1
|
||||
lea pc@(0,a1:l),a1
|
||||
movl a1@(_errno:w),a1
|
||||
movl a1@(_C_LABEL(errno):w),a1
|
||||
movl d0,a1@
|
||||
#else
|
||||
movl d0,_errno
|
||||
movl d0,_C_LABEL(errno)
|
||||
#endif
|
||||
moveq #-1,d0
|
||||
jmp a0@
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: __vfork14.S,v 1.1 1998/01/04 20:58:10 thorpej Exp $ */
|
||||
/* $NetBSD: __vfork14.S,v 1.2 1998/07/01 06:44:14 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -43,7 +43,7 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)Ovfork.s 5.1 (Berkeley) 5/12/90")
|
||||
#else
|
||||
RCSID("$NetBSD: __vfork14.S,v 1.1 1998/01/04 20:58:10 thorpej Exp $")
|
||||
RCSID("$NetBSD: __vfork14.S,v 1.2 1998/07/01 06:44:14 thorpej Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
@ -72,14 +72,14 @@ ENTRY(__vfork14)
|
||||
andl d1,d0
|
||||
jmp a0@
|
||||
err:
|
||||
.globl _errno
|
||||
.globl _C_LABEL(errno)
|
||||
#ifdef PIC
|
||||
movel #__GLOBAL_OFFSET_TABLE_,a1
|
||||
movel #_C_LABEL(_GLOBAL_OFFSET_TABLE_),a1
|
||||
lea pc@(0,a1:l),a1
|
||||
movl a1@(_errno:w),a1
|
||||
movl a1@(_C_LABEL(errno):w),a1
|
||||
movl d0,a1@
|
||||
#else
|
||||
movl d0,_errno
|
||||
movl d0,_C_LABEL(errno)
|
||||
#endif
|
||||
moveq #-1,d0
|
||||
jmp a0@
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: brk.S,v 1.5 1995/12/13 22:17:52 thorpej Exp $ */
|
||||
/* $NetBSD: brk.S,v 1.6 1998/07/01 06:44:15 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -43,21 +43,21 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)brk.s 5.1 (Berkeley) 5/12/90")
|
||||
#else
|
||||
RCSID("$NetBSD: brk.S,v 1.5 1995/12/13 22:17:52 thorpej Exp $")
|
||||
RCSID("$NetBSD: brk.S,v 1.6 1998/07/01 06:44:15 thorpej Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
.globl _end
|
||||
.globl _C_LABEL(end)
|
||||
.globl minbrk
|
||||
.globl curbrk
|
||||
|
||||
.data
|
||||
minbrk: .long _end
|
||||
minbrk: .long _C_LABEL(end)
|
||||
.text
|
||||
|
||||
ENTRY(brk)
|
||||
#ifdef PIC
|
||||
movl #__GLOBAL_OFFSET_TABLE_,a1
|
||||
movl #_C_LABEL(_GLOBAL_OFFSET_TABLE_),a1
|
||||
lea pc@(0,a1:l),a1
|
||||
movl a1@(minbrk:w),a0
|
||||
movl a0@,d0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cerror.S,v 1.6 1996/11/07 05:20:33 jtc Exp $ */
|
||||
/* $NetBSD: cerror.S,v 1.7 1998/07/01 06:44:15 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -43,33 +43,33 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)cerror.s 5.1 (Berkeley) 5/12/90")
|
||||
#else
|
||||
RCSID("$NetBSD: cerror.S,v 1.6 1996/11/07 05:20:33 jtc Exp $")
|
||||
RCSID("$NetBSD: cerror.S,v 1.7 1998/07/01 06:44:15 thorpej Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
.even
|
||||
.globl _errno
|
||||
.globl _C_LABEL(errno)
|
||||
cerror:
|
||||
#ifdef _REENTRANT
|
||||
movl d0,sp@-
|
||||
#ifdef PIC
|
||||
movl #__GLOBAL_OFFSET_TABLE_,a0
|
||||
movl #_C_LABEL(_GLOBAL_OFFSET_TABLE_),a0
|
||||
lea pc@(0,a0:l),a0
|
||||
movl a0@(___errno:l),a0
|
||||
movl a0@(_C_LABEL(__errno):l),a0
|
||||
jsr a0@
|
||||
#else
|
||||
jbsr ___errno
|
||||
jbsr _C_LABEL(__errno)
|
||||
#endif
|
||||
movl d0,a0
|
||||
movl sp@+,a0@
|
||||
#else
|
||||
#ifdef PIC
|
||||
movl #__GLOBAL_OFFSET_TABLE_,a0
|
||||
movl #_C_LABEL(_GLOBAL_OFFSET_TABLE_),a0
|
||||
lea pc@(0,a0:l),a0
|
||||
movl a0@(_errno:w),a0
|
||||
movl a0@(_C_LABEL(errno):w),a0
|
||||
movl d0,a0@
|
||||
#else
|
||||
movl d0,_errno
|
||||
movl d0,_C_LABEL(errno)
|
||||
#endif
|
||||
#endif /* _REENTRANT */
|
||||
movl #-1,d0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ptrace.S,v 1.3 1995/12/13 22:18:01 thorpej Exp $ */
|
||||
/* $NetBSD: ptrace.S,v 1.4 1998/07/01 06:44:15 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -43,20 +43,20 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)ptrace.s 5.1 (Berkeley) 5/12/90")
|
||||
#else
|
||||
RCSID("$NetBSD: ptrace.S,v 1.3 1995/12/13 22:18:01 thorpej Exp $")
|
||||
RCSID("$NetBSD: ptrace.S,v 1.4 1998/07/01 06:44:15 thorpej Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
.globl _errno
|
||||
.globl _C_LABEL(errno)
|
||||
|
||||
ENTRY(ptrace)
|
||||
#ifdef PIC
|
||||
movl #__GLOBAL_OFFSET_TABLE_,a0
|
||||
movl #_C_LABEL(_GLOBAL_OFFSET_TABLE_),a0
|
||||
lea pc@(0,a0:l),a0
|
||||
movl a0@(_errno:w),a0
|
||||
movl a0@(_C_LABEL(errno):w),a0
|
||||
clrl a0@
|
||||
#else
|
||||
clrl _errno
|
||||
clrl _C_LABEL(errno)
|
||||
#endif
|
||||
movl #SYS_ptrace,d0
|
||||
trap #0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sbrk.S,v 1.5 1995/12/13 22:18:07 thorpej Exp $ */
|
||||
/* $NetBSD: sbrk.S,v 1.6 1998/07/01 06:44:15 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
@ -43,20 +43,20 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)sbrk.s 5.1 (Berkeley) 5/12/90")
|
||||
#else
|
||||
RCSID("$NetBSD: sbrk.S,v 1.5 1995/12/13 22:18:07 thorpej Exp $")
|
||||
RCSID("$NetBSD: sbrk.S,v 1.6 1998/07/01 06:44:15 thorpej Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
.globl _end
|
||||
.globl _C_LABEL(end)
|
||||
.globl curbrk
|
||||
|
||||
.data
|
||||
curbrk: .long _end
|
||||
curbrk: .long _C_LABEL(end)
|
||||
.text
|
||||
|
||||
ENTRY(sbrk)
|
||||
#ifdef PIC
|
||||
movl #__GLOBAL_OFFSET_TABLE_,a1
|
||||
movl #_C_LABEL(_GLOBAL_OFFSET_TABLE_),a1
|
||||
lea pc@(0,a1:l),a1
|
||||
movl a1@(curbrk:w),a1
|
||||
movl a1@,d0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: setlogin.S,v 1.4 1995/12/13 22:18:09 thorpej Exp $ */
|
||||
/* $NetBSD: setlogin.S,v 1.5 1998/07/01 06:44:15 thorpej Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991 The Regents of the University of California.
|
||||
@ -39,19 +39,19 @@
|
||||
#if 0
|
||||
RCSID("from: @(#)setlogin.s 5.1 (Berkeley) 5/6/91")
|
||||
#else
|
||||
RCSID("$NetBSD: setlogin.S,v 1.4 1995/12/13 22:18:09 thorpej Exp $")
|
||||
RCSID("$NetBSD: setlogin.S,v 1.5 1998/07/01 06:44:15 thorpej Exp $")
|
||||
#endif
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
|
||||
.globl ___logname_valid /* in getlogin() */
|
||||
.globl _C_LABEL(__logname_valid) /* in getlogin() */
|
||||
|
||||
SYSCALL(setlogin)
|
||||
#ifdef PIC
|
||||
movl #__GLOBAL_OFFSET_TABLE_,a1
|
||||
movl #_C_LABEL(_GLOBAL_OFFSET_TABLE_),a1
|
||||
lea pc@(0,a1:l),a1
|
||||
movl a1@(___logname_valid:w),a1
|
||||
movl a1@(_C_LABEL(__logname_valid):w),a1
|
||||
clrl a1@
|
||||
#else
|
||||
clrl ___logname_valid
|
||||
clrl _C_LABEL(__logname_valid)
|
||||
#endif
|
||||
rts /* setlogin(name) */
|
||||
|
Loading…
Reference in New Issue
Block a user