Skip to content

Commit c91a21e

Browse files
style: format code with clang-format [skip ci]
1 parent d5108fb commit c91a21e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libcpu/risc-v/common/trap_common.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include "riscv-ops.h"
44
#include "rt_hw_stack_frame.h"
55

6-
#define ISR_NUMBER 32
6+
#define ISR_NUMBER 32
77
static volatile rt_hw_stack_frame_t *s_stack_frame;
88
static struct rt_irq_desc rv32irq_table[ISR_NUMBER];
99
void rt_show_stack_frame(void);
@@ -44,11 +44,11 @@ rt_weak void rt_hw_interrupt_init(void)
4444
* @return old handler
4545
*/
4646
rt_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();

0 commit comments

Comments
 (0)