File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
bsp/xuantie/virt64/c906/libcpu Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ void plic_set_threshold(int threshold)
93
93
int plic_claim (void )
94
94
{
95
95
int hart = __raw_hartid ();
96
- int irq = * ( uint32_t * )PLIC_CLAIM (hart );
96
+ int irq = readl (( uint32_t * )PLIC_CLAIM (hart ) );
97
97
return irq ;
98
98
}
99
99
@@ -110,7 +110,7 @@ int plic_claim(void)
110
110
void plic_complete (int irq )
111
111
{
112
112
int hart = __raw_hartid ();
113
- * ( uint32_t * )PLIC_COMPLETE (hart ) = irq ;
113
+ writel ( irq , ( uint32_t * )PLIC_COMPLETE (hart )) ;
114
114
}
115
115
116
116
void plic_set_ie (rt_uint32_t word_index , rt_uint32_t val )
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ void plic_set_threshold(int threshold)
93
93
int plic_claim (void )
94
94
{
95
95
int hart = __raw_hartid ();
96
- int irq = * ( uint32_t * )PLIC_CLAIM (hart );
96
+ int irq = readl (( uint32_t * )PLIC_CLAIM (hart ) );
97
97
return irq ;
98
98
}
99
99
@@ -110,7 +110,7 @@ int plic_claim(void)
110
110
void plic_complete (int irq )
111
111
{
112
112
int hart = __raw_hartid ();
113
- * ( uint32_t * )PLIC_COMPLETE (hart ) = irq ;
113
+ writel ( irq , ( uint32_t * )PLIC_COMPLETE (hart )) ;
114
114
}
115
115
116
116
void plic_set_ie (rt_uint32_t word_index , rt_uint32_t val )
You can’t perform that action at this time.
0 commit comments