summaryrefslogtreecommitdiff
path: root/sys/arch/mips64
diff options
context:
space:
mode:
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: