Fix asm example in docs to set meicontext.clearts when saving

This commit is contained in:
Luke Wren 2022-08-07 23:17:39 +01:00
parent ad5fd24772
commit 026b529bc5
2 changed files with 602 additions and 590 deletions

File diff suppressed because it is too large Load Diff

View File

@ -604,7 +604,8 @@ isr_external_irq:
csrr a0, mepc
sw a0, 64(sp)
csrr a0, meicontext
// Set bit 1 when reading to clear+save mie.mtie and mie.msie
csrrsi a0, meicontext, 0x2
sw a0, 68(sp)
csrr a0, mstatus
sw a0, 72(sp)