forked from Mirrors/opensbi
		
	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>
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user