summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2011-04-21 13:29:58 +0000
committerjsing <jsing@openbsd.org>2011-04-21 13:29:58 +0000
commit47c9aa734bc330682ac38d18a640b0695b378d9f (patch)
treeea823aaeafa6ee5ed483b03e77b764320237243a /lib/libc
parentProvide a HPPA_FRAME_ARGS macro. This only works correctly for the (diff)
downloadwireguard-openbsd-47c9aa734bc330682ac38d18a640b0695b378d9f.tar.xz
wireguard-openbsd-47c9aa734bc330682ac38d18a640b0695b378d9f.zip
Make SYS.h actually compile on hppa64.
ok kettenis@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/arch/hppa64/SYS.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/libc/arch/hppa64/SYS.h b/lib/libc/arch/hppa64/SYS.h
index c181ca69314..33c55b3dfc3 100644
--- a/lib/libc/arch/hppa64/SYS.h
+++ b/lib/libc/arch/hppa64/SYS.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: SYS.h,v 1.3 2010/10/01 05:02:19 guenther Exp $ */
+/* $OpenBSD: SYS.h,v 1.4 2011/04/21 13:29:58 jsing Exp $ */
/*
* Copyright (c) 1998-2002 Michael Shalayeff
@@ -40,29 +40,29 @@ LEAF_ENTRY(__CONCAT(_thread_sys_,x)) !\
EXIT(__CONCAT(_thread_sys_,x))
#define SYSCALL(x) !\
- std rp, HPPA_FRAME_ERP(sr0,sp) !\
- ldil L%SYSCALLGATE, r1 !\
- ble 4(sr7, r1) !\
- ldi __CONCAT(SYS_,x), r1 !\
+ std %rp, HPPA_FRAME_RP(%sr0,%sp) !\
+ ldil L%SYSCALLGATE, %r1 !\
+ ble 4(%sr7, %r1) !\
+ ldi __CONCAT(SYS_,x), %r1 !\
.import __cerror, code !\
- comb,<> r0, t1, __cerror !\
- ldd HPPA_FRAME_ERP(sr0,sp), rp
+ comb,<> %r0, %t1, __cerror !\
+ ldd HPPA_FRAME_RP(%sr0,%sp), %rp
#define PSEUDO(x,y) !\
SYSENTRY(x) !\
SYSCALL(y) !\
- bv r0(rp) !\
+ bv %r0(%rp) !\
nop !\
SYSEXIT(x)
#define PSEUDO_NOERROR(x,y) !\
SYSENTRY(x) !\
- std rp, HPPA_FRAME_ERP(sr0,sp) !\
- ldil L%SYSCALLGATE, r1 !\
- ble 4(sr7, r1) !\
- ldi __CONCAT(SYS_,y), r1 !\
- ldd HPPA_FRAME_ERP(sr0,sp), rp !\
- bv r0(rp) !\
+ std %rp, HPPA_FRAME_RP(%sr0,%sp) !\
+ ldil L%SYSCALLGATE, %r1 !\
+ ble 4(%sr7, %r1) !\
+ ldi __CONCAT(SYS_,y), %r1 !\
+ ldd HPPA_FRAME_RP(%sr0,%sp), %rp !\
+ bv %r0(%rp) !\
nop !\
SYSEXIT(x)