diff options
author | Joakim Bech <joakim.bech@linaro.org> | 2014-06-24 09:26:06 +0200 |
---|---|---|
committer | Joakim Bech <joakim.bech@linaro.org> | 2014-07-07 10:50:40 +0200 |
commit | 1f70169d24769a548cf15e6652578a360862af83 (patch) | |
tree | 0db0cdf66dd1413c4f9697b4bede91af87a57ac5 /core/include/io.h | |
parent | bc5871d4806af3c88a98103a20784f361c82c08f (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.h | 9 |
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; |