Module Name: src
Committed By: matt
Date: Thu Aug 20 10:05:34 UTC 2009
Modified Files:
src/sys/arch/mips/include [matt-nb5-mips64]: endian_machdep.h
Log Message:
Add REG_LLO and REG_LHI macros which expand to the appropriate
lwl/lwr/ldl/ldr instruction
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.154.1 src/sys/arch/mips/include/endian_machdep.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mips/include/endian_machdep.h
diff -u src/sys/arch/mips/include/endian_machdep.h:1.1 src/sys/arch/mips/include/endian_machdep.h:1.1.154.1
--- src/sys/arch/mips/include/endian_machdep.h:1.1 Fri Mar 17 00:09:22 2000
+++ src/sys/arch/mips/include/endian_machdep.h Thu Aug 20 10:05:34 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: endian_machdep.h,v 1.1 2000/03/17 00:09:22 mycroft Exp $ */
+/* $NetBSD: endian_machdep.h,v 1.1.154.1 2009/08/20 10:05:34 matt Exp $ */
#ifndef _BYTE_ORDER
# error Define MIPS target CPU endian-ness in port-specific header file.
@@ -14,6 +14,13 @@
# define LWLO lwl
# define SWHI swr
# define SWLO swl
+# if SZREG == 4
+# define REG_LHI lwr
+# define REG_LLO lwl
+# else
+# define REG_LHI ldr
+# define REG_LLO ldl
+# endif
#endif
#if _BYTE_ORDER == _BIG_ENDIAN
@@ -21,6 +28,13 @@
# define LWLO lwr
# define SWHI swl
# define SWLO swr
+# if SZREG == 4
+# define REG_LHI lwl
+# define REG_LLO lwr
+# else
+# define REG_LHI ldl
+# define REG_LLO ldr
+# endif
#endif
#endif /* LOCORE */