diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index f6bf9b1308..4f1b1f76a4 100644 --- a/include/common.h +++ b/include/common.h @@ -37,10 +37,12 @@ #define STRINGIFY(name) STRINGIFY0(name) /* Macros to access registers */ +#define REG64_ADDR(addr) ((volatile uint64_t *)(addr)) #define REG32_ADDR(addr) ((volatile uint32_t *)(addr)) #define REG16_ADDR(addr) ((volatile uint16_t *)(addr)) #define REG8_ADDR(addr) ((volatile uint8_t *)(addr)) +#define REG64(addr) (*REG64_ADDR(addr)) #define REG32(addr) (*REG32_ADDR(addr)) #define REG16(addr) (*REG16_ADDR(addr)) #define REG8(addr) (*REG8_ADDR(addr)) |