summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorPhilip Guenthe <guenther@cvs.openbsd.org>2012-07-01 19:32:29 +0000
committerPhilip Guenthe <guenther@cvs.openbsd.org>2012-07-01 19:32:29 +0000
commit1c28cdc0bc6920d381d530f8a60531acafebdfa4 (patch)
tree37c684f807323382b27662e5154f51e94f93b4d6 /lib/libc
parent73f4eb32e6db723fcb4a095a4a8b24a43619c34d (diff)
The kernel returns the pending set; this stub has to save it through
the pointer ok miod@ kettenis@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/arm/sys/sigpending.S12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/libc/arch/arm/sys/sigpending.S b/lib/libc/arch/arm/sys/sigpending.S
index 9056beb934e..67b46f6084a 100644
--- a/lib/libc/arch/arm/sys/sigpending.S
+++ b/lib/libc/arch/arm/sys/sigpending.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: sigpending.S,v 1.2 2004/02/01 05:40:52 drahn Exp $ */
+/* $OpenBSD: sigpending.S,v 1.3 2012/07/01 19:32:28 guenther Exp $ */
/* $NetBSD: sigpending.S,v 1.5 2003/08/07 16:42:05 agc Exp $ */
/*-
@@ -34,6 +34,10 @@
#include "SYS.h"
-#include "SYS.h"
-
-RSYSCALL(sigpending)
+SYSENTRY(sigpending)
+ mov r2, r0
+ SYSTRAP(sigpending)
+ bcs PIC_SYM(CERROR, PLT)
+ str r0, [r2]
+ mov r0, #0x00000000
+ mov r15, r14