summaryrefslogtreecommitdiffstats
path: root/lib/libc/arch
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2004-07-28 08:48:15 +0000
committermiod <miod@openbsd.org>2004-07-28 08:48:15 +0000
commit133eeddc1fc0a36cbc936743a8b64ca14e0b03c8 (patch)
treebcab8a9906b87d8eaa0cc8bffbc4013c684ed04c /lib/libc/arch
parentIn the never-ending saga of getting gcc to work reliably on m88k, today's (diff)
downloadwireguard-openbsd-133eeddc1fc0a36cbc936743a8b64ca14e0b03c8.tar.xz
wireguard-openbsd-133eeddc1fc0a36cbc936743a8b64ca14e0b03c8.zip
Update stack frame processing after ABI change.
Diffstat (limited to 'lib/libc/arch')
-rw-r--r--lib/libc/arch/m88k/SYS.h8
-rw-r--r--lib/libc/arch/m88k/sys/syscall.S10
2 files changed, 9 insertions, 9 deletions
diff --git a/lib/libc/arch/m88k/SYS.h b/lib/libc/arch/m88k/SYS.h
index e40aaf9d79f..81cb2611ac6 100644
--- a/lib/libc/arch/m88k/SYS.h
+++ b/lib/libc/arch/m88k/SYS.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: SYS.h,v 1.10 2003/06/02 20:18:31 millert Exp $*/
+/* $OpenBSD: SYS.h,v 1.11 2004/07/28 08:48:15 miod Exp $*/
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
@@ -48,9 +48,9 @@
#endif
#define __DO_SYSCALL(x) \
- ld r10,r31,32; \
- ld r11,r31,36; \
- ld r12,r31,40; \
+ ld r10,r31,0; \
+ ld r11,r31,4; \
+ ld r12,r31,8; \
or r13,r0,__SYSCALLNAME(SYS_,x); \
tb0 0, r0, 128
diff --git a/lib/libc/arch/m88k/sys/syscall.S b/lib/libc/arch/m88k/sys/syscall.S
index 446d6835d71..9ba4d2c0cd1 100644
--- a/lib/libc/arch/m88k/sys/syscall.S
+++ b/lib/libc/arch/m88k/sys/syscall.S
@@ -1,4 +1,4 @@
-/* $OpenBSD: syscall.S,v 1.7 2003/12/08 19:36:29 millert Exp $ */
+/* $OpenBSD: syscall.S,v 1.8 2004/07/28 08:48:17 miod Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@@ -35,15 +35,15 @@
#if defined(LIBC_SCCS)
.data
- .string "$OpenBSD: syscall.S,v 1.7 2003/12/08 19:36:29 millert Exp $"
+ .string "$OpenBSD: syscall.S,v 1.8 2004/07/28 08:48:17 miod Exp $"
#endif /* LIBC_SCCS */
#include "SYS.h"
SYSENTRY(syscall)
- ld r10,r31,32
- ld r11,r31,36
- ld r12,r31,40
+ ld r10,r31,0
+ ld r11,r31,4
+ ld r12,r31,8
or r13,r0,0
tb0 0,r0,128
br __cerror