summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2016-03-04 12:53:07 +0200
committerGerrit Code Review <gerrit@zephyrproject.org>2016-03-04 20:11:57 +0000
commit62fc555c882b032dc5178ee5cb86c9979644a637 (patch)
tree9051bcd4848fef2f207daa730834c0c565001c15
parent1d5f1cd6c9a354c3f6b781174b519ef7d16435e9 (diff)
include: Remove UNALIGNED_READ & UNALIGNED_WRITE
These were not actually used anywhere and weren't correct (at least not the READ variant which assumed the architecture can always deal with unaligned access). Change-Id: If2bee24dc729683c839bb631d411eab73498adad Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
-rw-r--r--include/toolchain/gcc.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/toolchain/gcc.h b/include/toolchain/gcc.h
index 36edee1f7..610c307ea 100644
--- a/include/toolchain/gcc.h
+++ b/include/toolchain/gcc.h
@@ -45,15 +45,6 @@
__attribute__((section(#segment ",\"wa\",@nobits#")))
#endif
-#define UNALIGNED_READ(p) (*(p))
-
-#define UNALIGNED_WRITE(p, v) \
- do { \
- unsigned int __attribute__((__may_alias__)) *pp = (unsigned int *)(p); \
- *pp = (v); \
- } \
- while (0)
-
/* Unaligned access */
#define UNALIGNED_GET(p) \
__extension__ ({ \