summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-03-14 16:57:22 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-03-14 16:57:22 +0000
commit9440e036544978fb04f1e87f59b30b81671cf83b (patch)
tree502bf6b35100fdb5b2edbf3b999b406f0c4892d8 /sys/arch/mips64
parent095755402f5775cde9e9eac61d031eb78be0e3cd (diff)
Revert previous; turns out to be necessary to build the 32-bit boot blocks
on sgi.
Diffstat (limited to 'sys/arch/mips64')
-rw-r--r--sys/arch/mips64/include/asm.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/arch/mips64/include/asm.h b/sys/arch/mips64/include/asm.h
index 2c8abd34be6..88810c74d49 100644
--- a/sys/arch/mips64/include/asm.h
+++ b/sys/arch/mips64/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.20 2014/03/11 07:50:49 jasper Exp $ */
+/* $OpenBSD: asm.h,v 1.21 2014/03/14 16:57:21 miod Exp $ */
/*
* Copyright (c) 2001-2002 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -148,6 +148,19 @@
#define CF_RA_OFFS 40 /* Call ra save offset */
#endif
+#ifndef __LP64__
+#define PTR_L lw
+#define PTR_S sw
+#define PTR_SUB sub
+#define PTR_ADD add
+#define PTR_SUBU subu
+#define PTR_ADDU addu
+#define LI li
+#define LA la
+#define PTR_SLL sll
+#define PTR_SRL srl
+#define PTR_VAL .word
+#else
#define PTR_L ld
#define PTR_S sd
#define PTR_ADD dadd
@@ -159,6 +172,7 @@
#define PTR_SLL dsll
#define PTR_SRL dsrl
#define PTR_VAL .dword
+#endif
/*
* The following macros are here to benefit the R8000 processor: