Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
yhzhang0128 committed Feb 26, 2022
1 parent ae891c1 commit 8faddc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions earth/cpu_intr.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ static void trap_entry() __attribute__((interrupt, aligned(128)));
#define METAL_MCAUSE_CAUSE 0x000003FFUL

int intr_init() {
INFO("Use direct mode for CPU interrupt");
INFO("Put the address of trap_entry() to CSR register mtvec");
__asm__ volatile("csrw mtvec, %0" ::"r"((unsigned int)trap_entry & ~METAL_MTVEC_CLIC_VECTORED));

Expand Down

0 comments on commit 8faddc5

Please sign in to comment.