Skip to content

Commit bd3151e

Browse files
Export ARM timer for QEMU virt AArch64
The QEMU virt platform does not have a timer and so the only way to get a timer driver working is to use the architectural timer. Exporting the architectural timer to user-space can be problematic as it means any user-space program can access it, including ones you may not trust. However, as this platform is only intended for development purposes, this is not an issue. Signed-off-by: Ivan Velickovic <i.velickovic@unsw.edu.au>
1 parent b5eef17 commit bd3151e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build_sdk.py

+2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ class ConfigInfo:
164164
"KernelArmExportPCNTUser": True,
165165
"QEMU_MEMORY": "2048",
166166
"KernelArmHypervisorSupport": True,
167+
"KernelArmExportPCNTUser": True,
168+
"KernelArmExportPTMRUser": True,
167169
},
168170
examples={
169171
"hello": Path("example/qemu_virt_aarch64/hello"),

0 commit comments

Comments
 (0)