diff options
author | Atish Patra <atish.patra@wdc.com> | 2019-02-13 05:32:58 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-02-14 07:01:18 +0300 |
commit | 28d1dd2430a80d350c9a53a1f5be08de8c3f9dc1 (patch) | |
tree | af19d21d40c88c979f39c038c995bc7125eefe9e /platform | |
parent | 70a474d2c24dc3e0c8841e6ef5cc96797deadbf5 (diff) | |
download | opensbi-28d1dd2430a80d350c9a53a1f5be08de8c3f9dc1.tar.xz |
platform: Use CSR_<FOO> instead of <foo> for csr_*()
Some older toolchains may not have all the csr's defined. Update all
the csr functions to use the CSR_ #define values instead of the
toolchain defined values.
Suggested-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/kendryte/k210/platform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/kendryte/k210/platform.h b/platform/kendryte/k210/platform.h index ddfdf15..b9e5a87 100644 --- a/platform/kendryte/k210/platform.h +++ b/platform/kendryte/k210/platform.h @@ -88,7 +88,7 @@ #define SPI1_BASE_ADDR (0x53000000U) #define SPI3_BASE_ADDR (0x54000000U) -#define read_cycle() csr_read(mcycle) +#define read_cycle() csr_read(CSR_MCYCLE) /* * PLIC External Interrupt Numbers |