forked from Mirrors/opensbi
		
	platform: Fix compile error caused by standard includes
Avoid using standard includes namely stdint.h, string.h, stdlib.h, etc. All standard include except stddef.h give compilation error due to differences in RISC-V toolchain configuration. Typically, the compilation error is related to "gnu-stubs-lp64.h". This patch fixes compile error caused by standard includes by providing substitutes of definetions provided by standard includes wherever required. Signed-off-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
		@@ -10,9 +10,9 @@
 | 
			
		||||
#include <sbi/riscv_io.h>
 | 
			
		||||
#include <sbi/riscv_encoding.h>
 | 
			
		||||
#include <sbi/sbi_console.h>
 | 
			
		||||
#include <plat/string.h>
 | 
			
		||||
#include <plat/tinyfdt.h>
 | 
			
		||||
#include <plat/irqchip/plic.h>
 | 
			
		||||
#include <string.h>
 | 
			
		||||
 | 
			
		||||
#define PLIC_PRIORITY_BASE		0x0
 | 
			
		||||
#define PLIC_PENDING_BASE		0x1000
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user