kernel-mode #1
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
venv
|
venv
|
||||||
__pycache__
|
__pycache__
|
||||||
|
.mypy_cache
|
@ -134,7 +134,7 @@ class PrivCPU(CPU):
|
|||||||
self._time_interrupt_enabled = True
|
self._time_interrupt_enabled = True
|
||||||
|
|
||||||
@self.csr.callback('mtimecmph')
|
@self.csr.callback('mtimecmph')
|
||||||
def mtimecmp(old, new):
|
def mtimecmph(old, new):
|
||||||
self._time_timecmp = (new << 32) + self.csr.get('mtimecmp')
|
self._time_timecmp = (new << 32) + self.csr.get('mtimecmp')
|
||||||
self._time_interrupt_enabled = True
|
self._time_interrupt_enabled = True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user