diff options
author | 1996-07-18 17:00:09 +0000 | |
---|---|---|
committer | 1996-07-18 17:00:09 +0000 | |
commit | 8a25bc5a576b1340e78d5600ca0aaff4103ca55c (patch) | |
tree | 8c333b6c96d01cf87fa9b2ef4421143451379d6a /sys | |
parent | Add macros to handle endian issues. (diff) | |
download | wireguard-openbsd-8a25bc5a576b1340e78d5600ca0aaff4103ca55c.tar.xz wireguard-openbsd-8a25bc5a576b1340e78d5600ca0aaff4103ca55c.zip |
Endian macros added.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/arc/include/asm.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/arc/include/asm.h b/sys/arch/arc/include/asm.h index b7e468bc5ee..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.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) |