diff options
author | Atish Patra <atish.patra@wdc.com> | 2019-02-13 05:32:06 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-02-14 07:01:18 +0300 |
commit | 70a474d2c24dc3e0c8841e6ef5cc96797deadbf5 (patch) | |
tree | 0c1456134e4815aadea0f523d7fb570454e23d0d /include/sbi/sbi_scratch.h | |
parent | 4cb4d46875dd0f0dd01d3ff1fee4f0d6cefb857a (diff) | |
download | opensbi-70a474d2c24dc3e0c8841e6ef5cc96797deadbf5.tar.xz |
lib: 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 'include/sbi/sbi_scratch.h')
-rw-r--r-- | include/sbi/sbi_scratch.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h index e4c648c..ff6aed0 100644 --- a/include/sbi/sbi_scratch.h +++ b/include/sbi/sbi_scratch.h @@ -61,7 +61,7 @@ struct sbi_scratch { /** Get pointer to sbi_scratch for current HART */ #define sbi_scratch_thishart_ptr() \ -((struct sbi_scratch *)csr_read(mscratch)) +((struct sbi_scratch *)csr_read(CSR_MSCRATCH)) /** Get Arg1 of next booting stage for current HART */ #define sbi_scratch_thishart_arg1_ptr() \ |