mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-07-27 02:24:52 +00:00
On some MediaTek platforms, the cores' System Timers aren't initialized corectly by TEE, so we need to enable them manually, otherwise CNTVCT_EL0 will return 0, and any delay function will generate an infinite loop. Based on [1]. [1]: https://patchwork.kernel.org/project/linux-mediatek/patch/20220509210741.12020-3-angelogioacchino.delregno@collabora.com/ Signed-off-by: Alexandru Chimac <alex@chimac.ro>