Interrupts are working again, new fontplate
This commit is contained in:
@@ -385,17 +385,6 @@ unsafe extern "C" fn _supervisor_mode_trap() {
|
||||
csrr t0, sepc
|
||||
sd t0, 248(sp)
|
||||
csrr t0, sstatus
|
||||
// Move SIE bit to SPIE. Restore_context, in the sret instruction, will do the inverse operation
|
||||
// Isolate SIE bit (1)
|
||||
andi t1, t0, 0x2
|
||||
// li t1, 0x2
|
||||
// Shift to bit 5 (SPIE)
|
||||
slli t1, t1, 4
|
||||
// Clear bit 1 and 5
|
||||
li t2, ~0x22
|
||||
and t0, t0, t2
|
||||
// Add the SPIE bit
|
||||
or t0, t0, t1
|
||||
sd t0, 256(sp)
|
||||
|
||||
mv a0, sp
|
||||
|
||||
Reference in New Issue
Block a user