Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142018251
D39059.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
671 B
Referenced Files
None
Subscribers
None
D39059.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D39059: Always enable the virtual timer for usersapce
Attached
Detach File
Event Timeline
Log In to Comment