summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc/stand/libbug/outch.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/mvmeppc/stand/libbug/outch.c')
-rw-r--r--sys/arch/mvmeppc/stand/libbug/outch.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/arch/mvmeppc/stand/libbug/outch.c b/sys/arch/mvmeppc/stand/libbug/outch.c
new file mode 100644
index 00000000000..5d98a4e0065
--- /dev/null
+++ b/sys/arch/mvmeppc/stand/libbug/outch.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_outchr(a)
+ char a;
+{
+ asm volatile ("mr 3, %0" : :"r" (a));
+ MVMEPROM_CALL(MVMEPROM_OUTCHR);
+}
+