ladybird/Kernel/Time
Andreas Kling fdfc66db61 Kernel+LibC: Allow clock_gettime() to run without syscalls
This patch adds a vDSO-like mechanism for exposing the current time as
an array of per-clock-source timestamps.

LibC's clock_gettime() calls sys$map_time_page() to map the kernel's
"time page" into the process address space (at a random address, ofc.)
This is only done on first call, and from then on the timestamps are
fetched from the time page.

This first patch only adds support for CLOCK_REALTIME, but eventually
we should be able to support all clock sources this way and get rid of
sys$clock_gettime() in the kernel entirely. :^)

Accesses are synchronized using two atomic integers that are incremented
at the start and finish of the kernel's time page update cycle.
2021-08-10 19:21:16 +02:00
..
APICTimer.cpp Kernel: Remove unused header includes in Time subtree 2021-07-11 21:37:38 +02:00
APICTimer.h Kernel: Make HardwareTimer::model() return StringView 2021-08-06 00:37:47 +02:00
HardwareTimer.h Kernel: Make HardwareTimer::model() return StringView 2021-08-06 00:37:47 +02:00
HPET.cpp Kernel: Add convenience values to the Memory::Region::Access enum 2021-08-06 22:25:00 +02:00
HPET.h Kernel: Move Kernel/Memory/ code into Kernel::Memory namespace 2021-08-06 14:05:58 +02:00
HPETComparator.cpp Kernel: Move special sections into Sections.h 2021-06-24 00:38:23 +02:00
HPETComparator.h Kernel: Make HardwareTimer::model() return StringView 2021-08-06 00:37:47 +02:00
PIT.cpp Kernel: Remove unused header includes 2021-08-01 08:10:16 +02:00
PIT.h Kernel: Make HardwareTimer::model() return StringView 2021-08-06 00:37:47 +02:00
RTC.cpp Kernel: Pull apart CPU.h 2021-06-24 00:38:23 +02:00
RTC.h Kernel: Make HardwareTimer::model() return StringView 2021-08-06 00:37:47 +02:00
TimeManagement.cpp Kernel+LibC: Allow clock_gettime() to run without syscalls 2021-08-10 19:21:16 +02:00
TimeManagement.h Kernel+LibC: Allow clock_gettime() to run without syscalls 2021-08-10 19:21:16 +02:00