Initial commit
This commit is contained in:
commit
cbc51f523e
125 changed files with 34817 additions and 0 deletions
16
src/sys/time.c
Normal file
16
src/sys/time.c
Normal 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;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue