patch-2.1.44 linux/arch/mips/lib/pmaxio.S

Next file: linux/arch/mips/lib/strlen_user.S
Previous file: linux/arch/mips/lib/pmaxcon.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.43/linux/arch/mips/lib/pmaxio.S linux/arch/mips/lib/pmaxio.S
@@ -0,0 +1,40 @@
+#include <asm/regdef.h>
+#include <asm/decstation.h>
+
+		.text
+		.set	reorder
+/*
+ * pmax_printf - call the PROM printf() function
+ */
+		.globl	pmax_printf
+pmax_printf:
+		lw	v0,pmax_rex_base
+		lw	v0,REX_PRINTF(v0)
+		j	v0
+
+/*
+ * pmax_getchar - call the PROM getchar() function
+ */
+		.globl	pmax_getch
+pmax_getch:
+		lw	v0,pmax_rex_base
+		lw	v0,REX_GETCHAR(v0)
+		j	v0
+
+/*
+ * pmax_putchar - call the PROM putchar() function
+ */
+		.globl	pmax_putch
+pmax_putch:
+		lw	v0,pmax_rex_base
+		lw	v0,REX_PUTCHAR(v0)
+		j	v0
+
+/*
+ * pmax_halt - call the PROM halt() function
+ */
+		.globl	pmax_halt
+pmax_halt:
+		lw	v0,pmax_rex_base
+		lw	v0,REX_HALT(v0)
+		j	v0

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov