summaryrefslogtreecommitdiff
path: root/sys/arch/arc
diff options
context:
space:
mode:
authorPer Fogelstrom <pefo@cvs.openbsd.org>1996-07-18 17:00:10 +0000
committerPer Fogelstrom <pefo@cvs.openbsd.org>1996-07-18 17:00:10 +0000
commit8d89a2859cec232a2b5915f393fe8d72258090ed (patch)
tree6e124bceb4b50d502bd0ce96cd192749301ad7e3 /sys/arch/arc
parent9a49469d984cc0ddc518e5cf776b874aac7479ea (diff)
Endian macros added.
Diffstat (limited to 'sys/arch/arc')
-rw-r--r--sys/arch/arc/include/asm.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/arc/include/asm.h b/sys/arch/arc/include/asm.h
index b276c10a1f3..81cc88408c5 100644
--- a/sys/arch/arc/include/asm.h
+++ b/sys/arch/arc/include/asm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asm.h,v 1.1 1996/06/24 09:07:18 pefo Exp $ */
+/* $OpenBSD: asm.h,v 1.2 1996/07/18 17:00:09 pefo Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -56,6 +56,14 @@
#define _C_LABEL(x) x
/*
+ * Define how to access unaligned data word
+ */
+#define LWLO lwr
+#define LWHI lwl
+#define SWLO swr
+#define SWHI swl
+
+/*
* Define -pg profile entry code.
*/
#if defined(GPROF) || defined(PROF)