aboutsummaryrefslogtreecommitdiff
path: root/core/include/io.h
diff options
context:
space:
mode:
authorJoakim Bech <joakim.bech@linaro.org>2014-06-24 09:26:06 +0200
committerJoakim Bech <joakim.bech@linaro.org>2014-07-07 10:50:40 +0200
commit1f70169d24769a548cf15e6652578a360862af83 (patch)
tree0db0cdf66dd1413c4f9697b4bede91af87a57ac5 /core/include/io.h
parentbc5871d4806af3c88a98103a20784f361c82c08f (diff)
Removed unused KTA related defines
- Moved IO macro from kta_mem.h to io.h. - Removed unused TEE_MEM_xyz defines. - Removed code that was used for TA's in TEE RAM (impossible to reach that code). Signed-off-by: Joakim Bech <joakim.bech@linaro.org>
Diffstat (limited to 'core/include/io.h')
-rw-r--r--core/include/io.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/include/io.h b/core/include/io.h
index be370274..bdc1976d 100644
--- a/core/include/io.h
+++ b/core/include/io.h
@@ -27,6 +27,15 @@
#ifndef IO_H
#define IO_H
+#include <stdint.h>
+#include <sys/types.h>
+
+/*
+ * IO access macro, please avoid using this macro, since it's going to be
+ * deprecated.
+ */
+#define IO(addr) (*((volatile unsigned long *)(addr)))
+
static inline void write8(uint8_t val, vaddr_t addr)
{
*(volatile uint8_t *)addr = val;