File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 33#include "riscv-ops.h"
44#include "rt_hw_stack_frame.h"
55
6- #define ISR_NUMBER 32
6+ #define ISR_NUMBER 32
77static volatile rt_hw_stack_frame_t * s_stack_frame ;
88static struct rt_irq_desc rv32irq_table [ISR_NUMBER ];
99void rt_show_stack_frame (void );
@@ -44,11 +44,11 @@ rt_weak void rt_hw_interrupt_init(void)
4444 * @return old handler
4545 */
4646rt_weak rt_isr_handler_t rt_hw_interrupt_install (int vector , rt_isr_handler_t handler ,
47- void * param , const char * name )
47+ void * param , const char * name )
4848{
4949 rt_isr_handler_t old_handler = RT_NULL ;
5050
51- if (vector < ISR_NUMBER )
51+ if (vector < ISR_NUMBER )
5252 {
5353 old_handler = rv32irq_table [vector ].handler ;
5454 if (handler != RT_NULL )
@@ -71,7 +71,7 @@ rt_weak void rt_rv32_system_irq_handler(rt_uint32_t mcause)
7171 rt_uint32_t mscratch = read_csr (0x340 );
7272 rt_uint32_t irq_id = (mcause & 0x1F );
7373 rt_uint32_t exception = !(mcause & 0x80000000 );
74- if (exception )
74+ if (exception )
7575 {
7676 s_stack_frame = (volatile rt_hw_stack_frame_t * )(uintptr_t )mscratch ;
7777 rt_show_stack_frame ();
You can’t perform that action at this time.
0 commit comments