summaryrefslogtreecommitdiff
path: root/newlib/libc/sys/m88kbug/sys/systraps.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/m88kbug/sys/systraps.h')
-rw-r--r--newlib/libc/sys/m88kbug/sys/systraps.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/libc/sys/m88kbug/sys/systraps.h b/newlib/libc/sys/m88kbug/sys/systraps.h
new file mode 100644
index 00000000000..f3ee1a3c2a4
--- /dev/null
+++ b/newlib/libc/sys/m88kbug/sys/systraps.h
@@ -0,0 +1,9 @@
+/* trap numbers for mvme187bug */
+
+#define INCHR 0x0000
+#define OUTCHR 0x0020
+#define RETURN 0x0063
+
+#define SYSTRAP(x) {asm("or r9,r0,%0" : : "i" (x) : "r9"); asm("tb0 0,r0,496");}
+
+/* end of systraps.h */