[PATCH v2 2/3] bsps/arm: Unmask generic timer in interrupt handler

Jeff Kubascik jeff.kubascik at dornerworks.com
Wed Dec 4 14:29:32 UTC 2019


Xen will mask the virtual timer before injecting the interrupt to the
guest.
---
 bsps/arm/shared/clock/clock-generic-timer.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bsps/arm/shared/clock/clock-generic-timer.c b/bsps/arm/shared/clock/clock-generic-timer.c
index 1369a5d6f1..1f39632ba6 100644
--- a/bsps/arm/shared/clock/clock-generic-timer.c
+++ b/bsps/arm/shared/clock/clock-generic-timer.c
@@ -90,6 +90,9 @@ static void arm_gt_clock_at_tick(void)
   cval = arm_gt_clock_get_compare_value();
   cval += interval;
   arm_gt_clock_set_compare_value(cval);
+#ifdef ARM_GENERIC_TIMER_UNMASK_AT_TICK
+  arm_gt_clock_set_control(0x1);
+#endif /* ARM_GENERIC_TIMER_UNMASK_AT_TICK */
 }
 
 static void arm_gt_clock_handler_install(void)
-- 
2.17.1



More information about the devel mailing list