Page MenuHomeFreeBSD

D39059.diff
No OneTemporary

D39059.diff

diff --git a/sys/arm/arm/generic_timer.c b/sys/arm/arm/generic_timer.c
--- a/sys/arm/arm/generic_timer.c
+++ b/sys/arm/arm/generic_timer.c
@@ -270,13 +270,12 @@
cntkctl = get_el1(cntkctl);
cntkctl &= ~(GT_CNTKCTL_PL0PTEN | GT_CNTKCTL_PL0VTEN |
- GT_CNTKCTL_EVNTEN);
+ GT_CNTKCTL_EVNTEN | GT_CNTKCTL_PL0PCTEN);
+ /* Always enable the virtual timer */
+ cntkctl |= GT_CNTKCTL_PL0VCTEN;
+ /* Enable the physical timer if supported */
if (arm_tmr_sc->physical) {
cntkctl |= GT_CNTKCTL_PL0PCTEN;
- cntkctl &= ~GT_CNTKCTL_PL0VCTEN;
- } else {
- cntkctl |= GT_CNTKCTL_PL0VCTEN;
- cntkctl &= ~GT_CNTKCTL_PL0PCTEN;
}
set_el1(cntkctl, cntkctl);
isb();

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 16, 12:02 AM (5 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27656158
Default Alt Text
D39059.diff (671 B)

Event Timeline