Merge pull request #291 from chiangkd/master

Fix incorrect comment
This commit is contained in:
Dolu1990 2023-01-02 09:56:49 +01:00 committed by GitHub
commit c8dff13391
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ trap_entry:
csrr x29, mstatus csrr x29, mstatus
and x29, x29, 0x080 and x29, x29, 0x080
beqz x29, notExternalInterrupt beqz x29, notExternalInterrupt
li x29, 0x1800 //000 disable interrupts li x29, 0x1800 //1800 disable interrupts
csrw mstatus,x29 csrw mstatus,x29
mret mret
@ -227,7 +227,7 @@ test7:
sw a3, 0(a0) sw a3, 0(a0)
li x29, 0x800 //800 external interrupts li x29, 0x800 //800 external interrupts
csrw mie,x29 csrw mie,x29
li x29, 0x1808 //008 enable interrupts li x29, 0x1808 //1808 enable interrupts
lr.w a5, (a0) lr.w a5, (a0)
csrw mstatus,x29 //Enable external interrupt (will jump instantly due to testbench setup) csrw mstatus,x29 //Enable external interrupt (will jump instantly due to testbench setup)
nop nop