diff options
author | Anton Kling <anton@kling.gg> | 2024-07-03 18:30:51 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-07-03 18:30:51 +0200 |
commit | 4e7918753175dbd8fc38bc7c5b176517e1dbef2f (patch) | |
tree | 723b3b3503d7502f3ce5338aeb6964cb5fa4c246 /kernel/arch/i386/tsc.h | |
parent | 658c4e9645bf46268ed13bf5ef76d0ba60a347b9 (diff) |
Kernel/Time: Improve time keeping
This makes use of TSC and now provides a file system interface for
userland programs to change the system time.
Diffstat (limited to 'kernel/arch/i386/tsc.h')
-rw-r--r-- | kernel/arch/i386/tsc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/kernel/arch/i386/tsc.h b/kernel/arch/i386/tsc.h index 2e29cf3..1a9e317 100644 --- a/kernel/arch/i386/tsc.h +++ b/kernel/arch/i386/tsc.h @@ -1,4 +1,6 @@ #include <typedefs.h> -u64 get_tsc(); -u64 get_hz(); +void tsc_init(void); +u64 tsc_get(void); +u64 tsc_get_mhz(void); +u64 tsc_calculate_ms(u64 tsc); |