summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/stand/libbug/m68k/outstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvme68k/stand/libbug/m68k/outstr.c')
-rw-r--r--sys/arch/mvme68k/stand/libbug/m68k/outstr.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/arch/mvme68k/stand/libbug/m68k/outstr.c b/sys/arch/mvme68k/stand/libbug/m68k/outstr.c
new file mode 100644
index 00000000000..b0a7c9ebc92
--- /dev/null
+++ b/sys/arch/mvme68k/stand/libbug/m68k/outstr.c
@@ -0,0 +1,15 @@
+/*
+ * bug routines -- assumes that the necessary sections of memory
+ * are preserved.
+ */
+#include <sys/types.h>
+#include <machine/prom.h>
+
+void
+mvmeprom_outstr(start, end)
+ char *start, *end;
+{
+ asm volatile ("movl %0, sp@-" : "=a" (start));
+ asm volatile ("movl %0, sp@-" : "=a" (end));
+ MVMEPROM_CALL(MVMEPROM_OUTSTR);
+}