Initial commit

This commit is contained in:
bdbrd 2025-10-22 15:51:24 +02:00
commit cbc51f523e
125 changed files with 34817 additions and 0 deletions

16
src/sys/time.c Normal file
View file

@ -0,0 +1,16 @@
/* Time keeping */
#include <stdint.h>
#include "../hal/tsc.h"
uint64_t kernel_get_timestamp(){
uint64_t ret = 0;
uint64_t tsc = tsc_get_timestamp();
if(tsc == 0){
/* Get APIC timestamp */
}
return tsc;
}