summaryrefslogtreecommitdiff
path: root/sys/arch/m88k/include/asm.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2005-04-27 21:12:47 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2005-04-27 21:12:47 +0000
commite50903f8ae8397fe1d1ac92245784339d0e72bed (patch)
treebcf823f4b25d3c57e03cd9dde08b60c1f5b7da8b /sys/arch/m88k/include/asm.h
parentabef49fc9389831b104db64feb9250e35842bff4 (diff)
Shave more stack operations, courtesy of the not-so-new-now ABI.
Diffstat (limited to 'sys/arch/m88k/include/asm.h')
-rw-r--r--sys/arch/m88k/include/asm.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/arch/m88k/include/asm.h b/sys/arch/m88k/include/asm.h
index 2cc843bcd47..2b8354a78fe 100644
--- a/sys/arch/m88k/include/asm.h
+++ b/sys/arch/m88k/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.3 2004/07/28 12:28:48 miod Exp $ */
+/* $OpenBSD: asm.h,v 1.4 2005/04/27 21:12:44 miod Exp $ */
/*
* Mach Operating System
@@ -170,21 +170,17 @@
* Useful in some situations.
*/
#define CALL(NAME, ARG1, ARG2) \
- subu r31, r31, 32; \
or r2, r0, ARG1; \
bsr.n NAME; \
- or r3, r0, ARG2; \
- addu r31, r31, 32
+ or r3, r0, ARG2
/* This define is similar to CALL, but accepts a function pointer XXX smurph */
#define CALLP(NAME, ARG1, ARG2) \
- subu r31, r31, 32; \
or.u r5, r0, hi16(NAME); \
ld r4, r5, lo16(NAME); \
or r2, r0, ARG1; \
jsr.n r4; \
- or r3, r0, ARG2; \
- addu r31, r31, 32
+ or r3, r0, ARG2
/*
* Fields in cr18. More bits are used privately in the exception handling