amd64: add time system
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
bb71cfd98f
commit
36145eafbc
9 changed files with 179 additions and 2 deletions
17
include/kernel/time.h
Normal file
17
include/kernel/time.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#ifndef _TIME_H_
|
||||
#define _TIME_H_
|
||||
|
||||
#include <kernel/types.h>
|
||||
|
||||
struct timespec {
|
||||
i64 tv_sec;
|
||||
i64 tv_nsec;
|
||||
};
|
||||
|
||||
time_t arch_get_real_time();
|
||||
u64 tsc_calibrate();
|
||||
u64 rdtsc();
|
||||
struct timespec get_realtime();
|
||||
|
||||
#endif /* _TIME_H_ */
|
||||
Loading…
Reference in a new issue