summaryrefslogtreecommitdiff
path: root/lib/libc/arch/hppa/SYS.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2006-01-05 22:13:56 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2006-01-05 22:13:56 +0000
commitc548924531bef00e6bd5d9d6438c575ff7210c4c (patch)
tree28bf936c6c3836a42e679106435227600202c709 /lib/libc/arch/hppa/SYS.h
parent889dc37c20fd1e95ad44a8a36c20212c915cf04a (diff)
System call stubs don't have a frame of their own, so use EMTRY_LEAF instead
of ENTRY. This avoids emitting bogus unwind entries, which makes gdb a lot happier. ok mickey@
Diffstat (limited to 'lib/libc/arch/hppa/SYS.h')
-rw-r--r--lib/libc/arch/hppa/SYS.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc/arch/hppa/SYS.h b/lib/libc/arch/hppa/SYS.h
index f7685ebcd37..a68b05d96e2 100644
--- a/lib/libc/arch/hppa/SYS.h
+++ b/lib/libc/arch/hppa/SYS.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: SYS.h,v 1.14 2004/05/25 20:44:50 mickey Exp $ */
+/* $OpenBSD: SYS.h,v 1.15 2006/01/05 22:13:55 kettenis Exp $ */
/*
* Copyright (c) 1998-2002 Michael Shalayeff
@@ -33,8 +33,8 @@
#include <machine/vmparam.h>
#undef _LOCORE
-#define SYSENTRY(x,n) !\
-ENTRY(__CONCAT(_thread_sys_,x),n) !\
+#define SYSENTRY(x) !\
+LEAF_ENTRY(__CONCAT(_thread_sys_,x)) !\
.weak x ! .set x, __CONCAT(_thread_sys_,x)
#define SYSEXIT(x) !\
EXIT(__CONCAT(_thread_sys_,x))
@@ -49,14 +49,14 @@ EXIT(__CONCAT(_thread_sys_,x))
ldw HPPA_FRAME_ERP(sr0,sp), rp
#define PSEUDO(x,y) !\
-SYSENTRY(x,0) !\
+SYSENTRY(x) !\
SYSCALL(y) !\
bv r0(rp) !\
nop !\
SYSEXIT(x)
#define PSEUDO_NOERROR(x,y) !\
-SYSENTRY(x,0) !\
+SYSENTRY(x) !\
stw rp, HPPA_FRAME_ERP(sr0,sp) !\
ldil L%SYSCALLGATE, r1 !\
ble 4(sr7, r1) !\