Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu cycles: on arm64 use clock_gettime and PMCCNTR_EL0 for freestanding #238

Closed
wants to merge 1 commit into from

Commits on Jun 12, 2024

  1. cpu cycles: on arm64 use clock_gettime and PMCCNTR_EL0 for freestanding

    previously, cntvct_el0 was used which is capped to 24 MHz, leading to entropy
    test failures on macOS and linux-aarch64. The PMCCNTR_EL0 is not available in
    user-space normally (for Linux, there is a kernel module).
    
    So, what we do is similar to the ARM32 code path now.
    
    Fixes mirage#216
    hannesm committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    f245f69 View commit details
    Browse the repository at this point in the history