From 70a474d2c24dc3e0c8841e6ef5cc96797deadbf5 Mon Sep 17 00:00:00 2001 From: Atish Patra Date: Tue, 12 Feb 2019 18:32:06 -0800 Subject: lib: Use CSR_ instead of 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 Signed-off-by: Atish Patra --- include/sbi/sbi_scratch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/sbi/sbi_scratch.h') 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() \ -- cgit v1.2.3