forked from Mirrors/opensbi
		
	lib: utils/irqchip: Add shared MMIO region for PLIC in root domain
On platforms with Smepmp, the MMIO regions accessed by M-mode need to be explicitly marked with M-mode only read/write or shared (both (M-mode and S-mode) read/write permission. If the above is not done then runtime PLIC access from M-mode on platforms with Smepmp will result in access fault when further results in CPU hotplug not working. Signed-off-by: Anup Patel <apatel@ventanamicro.com>
This commit is contained in:
		@@ -25,6 +25,8 @@
 | 
			
		||||
#define ARIANE_UART_REG_WIDTH			4
 | 
			
		||||
#define ARIANE_UART_REG_OFFSET			0
 | 
			
		||||
#define ARIANE_PLIC_ADDR			0xc000000
 | 
			
		||||
#define ARIANE_PLIC_SIZE			(0x200000 + \
 | 
			
		||||
						 (ARIANE_HART_COUNT * 0x1000))
 | 
			
		||||
#define ARIANE_PLIC_NUM_SOURCES			3
 | 
			
		||||
#define ARIANE_HART_COUNT			1
 | 
			
		||||
#define ARIANE_CLINT_ADDR			0x2000000
 | 
			
		||||
@@ -36,6 +38,7 @@
 | 
			
		||||
 | 
			
		||||
static struct plic_data plic = {
 | 
			
		||||
	.addr = ARIANE_PLIC_ADDR,
 | 
			
		||||
	.size = ARIANE_PLIC_SIZE,
 | 
			
		||||
	.num_src = ARIANE_PLIC_NUM_SOURCES,
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user