1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:47:35 +00:00

Kernel: Add a Timer class for aarch64

For now, this can only query microseconds since boot.

Use this to print a timestamp every second. This busy-loops
until a second has passed. This might be a good first use of
interrupts soon.

qemu used to not implement this timer at some point, but
it seems to work fine even in qemu now (qemu v 5.2.0).
This commit is contained in:
Nico Weber 2021-10-02 15:50:23 -04:00 committed by Linus Groh
parent 496d2e3c29
commit bc213ad7a2
4 changed files with 91 additions and 1 deletions

View file

@ -9,6 +9,7 @@ if ("${SERENITY_ARCH}" STREQUAL "aarch64")
Arch/aarch64/Mailbox.cpp
Arch/aarch64/MainIdRegister.cpp
Arch/aarch64/MMIO.cpp
Arch/aarch64/Timer.cpp
Arch/aarch64/UART.cpp
Arch/aarch64/boot.S
Arch/aarch64/init.cpp