Fix asm example in docs to set meicontext.clearts when saving
This commit is contained in:
parent
ad5fd24772
commit
026b529bc5
1189
doc/hazard3.pdf
1189
doc/hazard3.pdf
File diff suppressed because it is too large
Load Diff
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue