mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 12:34:26 +01:00
arm timer: get closer to wokring on gem5
Base addresses were wrong to start with.
This commit is contained in:
@@ -16622,6 +16622,8 @@ cntv_cval_el0 0xB439642
|
||||
|
||||
and new `IRQ number` section appears every second, when a clock interrupt is raised!
|
||||
|
||||
TODO make work on gem5. Fails with <<gem5-simulate-limit-reached>> at the first WFI done in main, which means that the interrupt is never raised.
|
||||
|
||||
Once an interrupt is raised, the interrupt itself sets up a new interrupt to happen in one second in the future after `cntv_cval_el0` is reached by the counter.
|
||||
|
||||
The timer is part of the aarch64 specification itself and is documented at: <<armarm8-db>> Chapter D10 "The Generic Timer in AArch64 state". The key registers to keep in mind are:
|
||||
|
||||
Reference in New Issue
Block a user