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)
9393int plic_claim (void )
9494{
9595 int hart = __raw_hartid ();
96- int irq = * ( uint32_t * )PLIC_CLAIM (hart );
96+ int irq = readl (( uint32_t * )PLIC_CLAIM (hart ) );
9797 return irq ;
9898}
9999
@@ -110,7 +110,7 @@ int plic_claim(void)
110110void plic_complete (int irq )
111111{
112112 int hart = __raw_hartid ();
113- * ( uint32_t * )PLIC_COMPLETE (hart ) = irq ;
113+ writel ( irq , ( uint32_t * )PLIC_COMPLETE (hart )) ;
114114}
115115
116116void 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)
9393int plic_claim (void )
9494{
9595 int hart = __raw_hartid ();
96- int irq = * ( uint32_t * )PLIC_CLAIM (hart );
96+ int irq = readl (( uint32_t * )PLIC_CLAIM (hart ) );
9797 return irq ;
9898}
9999
@@ -110,7 +110,7 @@ int plic_claim(void)
110110void plic_complete (int irq )
111111{
112112 int hart = __raw_hartid ();
113- * ( uint32_t * )PLIC_COMPLETE (hart ) = irq ;
113+ writel ( irq , ( uint32_t * )PLIC_COMPLETE (hart )) ;
114114}
115115
116116void plic_set_ie (rt_uint32_t word_index , rt_uint32_t val )
You can’t perform that action at this time.
0 commit comments