???
This commit is contained in:
parent
8ec873b7d8
commit
f0987d82dc
|
@ -101,9 +101,10 @@ timervec:
|
||||||
sd a2, 8(a0)
|
sd a2, 8(a0)
|
||||||
sd a3, 16(a0)
|
sd a3, 16(a0)
|
||||||
|
|
||||||
# add another second to mtimecmp0.
|
# schedule the next timer interrupt
|
||||||
|
# by adding interval to mtimecmp.
|
||||||
ld a1, 32(a0) # CLINT_MTIMECMP(hart)
|
ld a1, 32(a0) # CLINT_MTIMECMP(hart)
|
||||||
ld a2, 40(a0) # ticks per second
|
ld a2, 40(a0) # interval
|
||||||
ld a3, 0(a1)
|
ld a3, 0(a1)
|
||||||
add a3, a3, a2
|
add a3, a3, a2
|
||||||
sd a3, 0(a1)
|
sd a3, 0(a1)
|
||||||
|
|
|
@ -191,7 +191,7 @@ devintr()
|
||||||
|
|
||||||
plic_complete(irq);
|
plic_complete(irq);
|
||||||
return 1;
|
return 1;
|
||||||
} else if(scause == 0x8000000000000001){
|
} else if(scause == 0x8000000000000001L){
|
||||||
// software interrupt from a machine-mode timer interrupt,
|
// software interrupt from a machine-mode timer interrupt,
|
||||||
// forwarded by timervec in kernelvec.S.
|
// forwarded by timervec in kernelvec.S.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue