Skip to content

Commit

Permalink
Merge pull request #2 from BMorgan1296/BMorgan1296-patch-1
Browse files Browse the repository at this point in the history
Update NaxRISCV Bios to enable mstatus.MIE interrupts
  • Loading branch information
BMorgan1296 authored Jan 29, 2025
2 parents cd5dbd2 + 64d54ad commit 78f8e88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions litex/soc/cores/cpu/naxriscv/crt0.S
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ bss_loop:
bss_done:

call plic_init // initialize external interrupt controller
li t0, 0x800 // external interrupt sources only (using LiteX timer);
// NOTE: must still enable mstatus.MIE!
li t0, 0x808 // external interrupt sources (using LiteX timer) and enable mstatus.MIE.
csrw mie,t0

call main
Expand Down

0 comments on commit 78f8e88

Please sign in to comment.