summaryrefslogtreecommitdiffstats
path: root/include/grub/mips/asm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/grub/mips/asm.h')
-rw-r--r--include/grub/mips/asm.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/grub/mips/asm.h b/include/grub/mips/asm.h
new file mode 100644
index 0000000..4c397f4
--- /dev/null
+++ b/include/grub/mips/asm.h
@@ -0,0 +1,18 @@
+#ifndef GRUB_MIPS_ASM_HEADER
+#define GRUB_MIPS_ASM_HEADER 1
+
+#if defined(_MIPS_SIM) && defined(_ABIN32) && _MIPS_SIM == _ABIN32
+#define GRUB_ASM_T4 $a4
+#define GRUB_ASM_T5 $a5
+#define GRUB_ASM_SZREG 8
+#define GRUB_ASM_REG_S sd
+#define GRUB_ASM_REG_L ld
+#else
+#define GRUB_ASM_T4 $t4
+#define GRUB_ASM_T5 $t5
+#define GRUB_ASM_SZREG 4
+#define GRUB_ASM_REG_S sw
+#define GRUB_ASM_REG_L lw
+#endif
+
+#endif