summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>1999-11-14 00:59:07 +0000
committermickey <mickey@openbsd.org>1999-11-14 00:59:07 +0000
commitbebf55ddd5c0c6ae79b4f86379651fb5b8f8bb93 (patch)
tree53260356f335f952042fe7c8eaf6cb7d7d7c77c6 /lib/libc
parentsync (diff)
downloadwireguard-openbsd-bebf55ddd5c0c6ae79b4f86379651fb5b8f8bb93.tar.xz
wireguard-openbsd-bebf55ddd5c0c6ae79b4f86379651fb5b8f8bb93.zip
this seem proper now
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/hppa/SYS.h36
-rw-r--r--lib/libc/arch/hppa/sys/cerror.S7
2 files changed, 22 insertions, 21 deletions
diff --git a/lib/libc/arch/hppa/SYS.h b/lib/libc/arch/hppa/SYS.h
index e296f1e3832..432db82f44a 100644
--- a/lib/libc/arch/hppa/SYS.h
+++ b/lib/libc/arch/hppa/SYS.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: SYS.h,v 1.4 1999/09/16 19:19:46 mickey Exp $ */
+/* $OpenBSD: SYS.h,v 1.5 1999/11/14 00:59:07 mickey Exp $ */
/*
* Copyright (c) 1998-1999 Michael Shalayeff
@@ -41,24 +41,32 @@
#define __EXIT(p,x) EXIT(__CONCAT(p,x))
+#define __SYSCALL(p,x) !\
+ .import errno, data !\
+ stw rp, HPPA_FRAME_ERP(sr0,sp) !\
+ ldil L%SYSCALLGATE, r1 !\
+ ble 4(sr7, r1) !\
+ ldi __CONCAT(SYS_,x), t1 !\
+ comb,=,n r0, t1, __CONCAT(x,$noerr) !\
+ ldil L%errno, r1 !\
+ stw t1, R%errno(r1) !\
+ ldi -1, ret0 !\
+ ldi -1, ret1 !\
+ .label __CONCAT(x,$noerr) !\
+ ldw HPPA_FRAME_ERP(sr0,sp), rp
+
#define __RSYSCALL(p,x) !\
__ENTRY(p,x) !\
- stw rp, HPPA_FRAME_ERP(sr0,sp) !\
- ldil L%SYSCALLGATE, r1 !\
- ble 4(sr7, r1) !\
- ldi __CONCAT(SYS_,x),r22 !\
- or,<> r0,r22,r0 !\
- ldw HPPA_FRAME_ERP(sr0,sp),rp !\
+ __SYSCALL(p,x) !\
+ bv r0(rp) !\
+ nop !\
__EXIT(p,x)
#define __PSEUDO(p,x,y) !\
__ENTRY(p,x) !\
- stw rp, HPPA_FRAME_ERP(sr0,sp) !\
- ldil L%SYSCALLGATE, r1 !\
- ble 4(sr7, r1) !\
- ldi __CONCAT(SYS_,y),r22 !\
- or,<> r0,r22,r0 !\
- ldw HPPA_FRAME_ERP(sr0,sp),rp !\
+ __SYSCALL(p,y) !\
+ bv r0(rp) !\
+ nop !\
__EXIT(p,x)
/*
@@ -88,4 +96,4 @@ __EXIT(p,x)
# define PSEUDO(x,y) __PSEUDO(,x,y)
/*# define SYSENTRY(x) __ENTRY(,x)*/
#endif _THREAD_SAFE
- .import cerror, code
+
diff --git a/lib/libc/arch/hppa/sys/cerror.S b/lib/libc/arch/hppa/sys/cerror.S
deleted file mode 100644
index ec77fea0cc8..00000000000
--- a/lib/libc/arch/hppa/sys/cerror.S
+++ /dev/null
@@ -1,7 +0,0 @@
-#include "SYS.h"
-
-cerror
- bv r0(rp)
- nop
-
- .end