Add END(func)

Use SYSTRAP
This commit is contained in:
matt 2013-07-16 22:19:16 +00:00
parent e198e9ac6c
commit d4d3821c9c
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: __sigtramp2.S,v 1.3 2013/07/16 20:49:42 matt Exp $ */
/* $NetBSD: __sigtramp2.S,v 1.4 2013/07/16 22:19:16 matt Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@ -44,7 +44,7 @@ ENTRY_NOPROFILE(__sigtramp_siginfo_2)
movl 8(%sp),%a0 /* get pointer to ucontext */
movl %a0,4(%sp) /* put it in the argument slot */
/* fake return address already there */
movl #SYS_setcontext,%d0
trap #0
SYSTRAP(setcontext)
movl %d0,4(%sp) /* error code */
SYSTRAP(exit) /* exit */
END(__sigtramp_siginfo_2)

View File

@ -1,4 +1,4 @@
/* $NetBSD: _lwp_getprivate.S,v 1.2 2008/04/28 20:22:56 martin Exp $ */
/* $NetBSD: _lwp_getprivate.S,v 1.3 2013/07/16 22:19:16 matt Exp $ */
/*-
* Copyright (c) 2007 The NetBSD Foundation, Inc.
@ -33,3 +33,4 @@ SYSCALL(_lwp_getprivate)
movl %d0,%a0
#endif
rts
END(_lwp_getprivate)