mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
arm64: KVM: Implement timer save/restore
Implement the timer save restore as a direct translation of the assembly code version. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
This commit is contained in:
parent
f68d2b1b73
commit
1431af367e
4 changed files with 81 additions and 0 deletions
|
@ -23,6 +23,12 @@
|
|||
#define ARCH_TIMER_CTRL_IT_MASK (1 << 1)
|
||||
#define ARCH_TIMER_CTRL_IT_STAT (1 << 2)
|
||||
|
||||
#define CNTHCTL_EL1PCTEN (1 << 0)
|
||||
#define CNTHCTL_EL1PCEN (1 << 1)
|
||||
#define CNTHCTL_EVNTEN (1 << 2)
|
||||
#define CNTHCTL_EVNTDIR (1 << 3)
|
||||
#define CNTHCTL_EVNTI (0xF << 4)
|
||||
|
||||
enum arch_timer_reg {
|
||||
ARCH_TIMER_REG_CTRL,
|
||||
ARCH_TIMER_REG_TVAL,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue