summaryrefslogtreecommitdiff
path: root/lib
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
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')
-rw-r--r--lib/libc/arch/hppa/SYS.h10
-rw-r--r--lib/libc/arch/hppa/sys/Ovfork.S4
-rw-r--r--lib/libc/arch/hppa/sys/brk.S4
-rw-r--r--lib/libc/arch/hppa/sys/fork.S4
-rw-r--r--lib/libc/arch/hppa/sys/rfork.S4
-rw-r--r--lib/libc/arch/hppa/sys/sbrk.S4
-rw-r--r--lib/libc/arch/hppa/sys/sigpending.S4
-rw-r--r--lib/libc/arch/hppa/sys/sigprocmask.S4
-rw-r--r--lib/libc/arch/hppa/sys/sigsuspend.S4
9 files changed, 21 insertions, 21 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) !\
diff --git a/lib/libc/arch/hppa/sys/Ovfork.S b/lib/libc/arch/hppa/sys/Ovfork.S
index e07ff9f1e2d..0477e6986c2 100644
--- a/lib/libc/arch/hppa/sys/Ovfork.S
+++ b/lib/libc/arch/hppa/sys/Ovfork.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: Ovfork.S,v 1.12 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: Ovfork.S,v 1.13 2006/01/05 22:13:55 kettenis Exp $ */
/*
* Copyright (c) 1999,2002 Michael Shalayeff
@@ -28,7 +28,7 @@
#include "SYS.h"
-SYSENTRY(vfork,0)
+SYSENTRY(vfork)
.import errno, data
copy rp, t4
ldil L%SYSCALLGATE, r1
diff --git a/lib/libc/arch/hppa/sys/brk.S b/lib/libc/arch/hppa/sys/brk.S
index 02ed65d643d..84588130c22 100644
--- a/lib/libc/arch/hppa/sys/brk.S
+++ b/lib/libc/arch/hppa/sys/brk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: brk.S,v 1.13 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: brk.S,v 1.14 2006/01/05 22:13:55 kettenis Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -36,7 +36,7 @@
minbrk
.long end
-SYSENTRY(brk,0)
+SYSENTRY(brk)
#ifdef PIC
addil LT%minbrk, r19
ldw RT%minbrk(r1), t1
diff --git a/lib/libc/arch/hppa/sys/fork.S b/lib/libc/arch/hppa/sys/fork.S
index 1015ac34ec1..ae766fee515 100644
--- a/lib/libc/arch/hppa/sys/fork.S
+++ b/lib/libc/arch/hppa/sys/fork.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: fork.S,v 1.10 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: fork.S,v 1.11 2006/01/05 22:13:55 kettenis Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -28,7 +28,7 @@
#include "SYS.h"
-SYSENTRY(fork,0)
+SYSENTRY(fork)
SYSCALL(fork)
addi -1, ret1, ret1
bv r0(rp)
diff --git a/lib/libc/arch/hppa/sys/rfork.S b/lib/libc/arch/hppa/sys/rfork.S
index 30f679e346e..f4f41201385 100644
--- a/lib/libc/arch/hppa/sys/rfork.S
+++ b/lib/libc/arch/hppa/sys/rfork.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: rfork.S,v 1.4 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: rfork.S,v 1.5 2006/01/05 22:13:55 kettenis Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -28,7 +28,7 @@
#include "SYS.h"
-SYSENTRY(rfork,0)
+SYSENTRY(rfork)
SYSCALL(rfork)
addi -1, ret1, ret1
bv r0(rp)
diff --git a/lib/libc/arch/hppa/sys/sbrk.S b/lib/libc/arch/hppa/sys/sbrk.S
index 587614a3f49..1813d6ad85e 100644
--- a/lib/libc/arch/hppa/sys/sbrk.S
+++ b/lib/libc/arch/hppa/sys/sbrk.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbrk.S,v 1.12 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: sbrk.S,v 1.13 2006/01/05 22:13:55 kettenis Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -35,7 +35,7 @@
__curbrk
.long end
-SYSENTRY(sbrk,0)
+SYSENTRY(sbrk)
#ifdef PIC
addil LT%__curbrk, r19
ldw RT%__curbrk(r1), t1
diff --git a/lib/libc/arch/hppa/sys/sigpending.S b/lib/libc/arch/hppa/sys/sigpending.S
index 8a76aa69206..fd8bd458cef 100644
--- a/lib/libc/arch/hppa/sys/sigpending.S
+++ b/lib/libc/arch/hppa/sys/sigpending.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigpending.S,v 1.9 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: sigpending.S,v 1.10 2006/01/05 22:13:55 kettenis Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -28,7 +28,7 @@
#include "SYS.h"
-SYSENTRY(sigpending,0)
+SYSENTRY(sigpending)
SYSCALL(sigpending)
ldw HPPA_FRAME_ARG(0)(sp), t1
stw ret0, 0(t1)
diff --git a/lib/libc/arch/hppa/sys/sigprocmask.S b/lib/libc/arch/hppa/sys/sigprocmask.S
index c36d63a2a8a..e463e827bb0 100644
--- a/lib/libc/arch/hppa/sys/sigprocmask.S
+++ b/lib/libc/arch/hppa/sys/sigprocmask.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigprocmask.S,v 1.12 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: sigprocmask.S,v 1.13 2006/01/05 22:13:55 kettenis Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -28,7 +28,7 @@
#include "SYS.h"
-SYSENTRY(sigprocmask,0)
+SYSENTRY(sigprocmask)
/* just in case compiler forgot about this */
stw arg2, HPPA_FRAME_ARG(2)(sp)
diff --git a/lib/libc/arch/hppa/sys/sigsuspend.S b/lib/libc/arch/hppa/sys/sigsuspend.S
index c7fade54620..4cf34ec6b32 100644
--- a/lib/libc/arch/hppa/sys/sigsuspend.S
+++ b/lib/libc/arch/hppa/sys/sigsuspend.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigsuspend.S,v 1.9 2005/08/07 16:40:14 espie Exp $ */
+/* $OpenBSD: sigsuspend.S,v 1.10 2006/01/05 22:13:55 kettenis Exp $ */
/*
* Copyright (c) 1999 Michael Shalayeff
@@ -28,7 +28,7 @@
#include "SYS.h"
-SYSENTRY(sigsuspend,0)
+SYSENTRY(sigsuspend)
ldw 0(arg0), arg0
stw arg0, HPPA_FRAME_ARG(0)(sp)