2022-10-30 09:07:03 +01:00
|
|
|
#include "bootboot.h"
|
2022-10-15 13:17:26 +02:00
|
|
|
#include "interrupts/Context.h"
|
2022-10-30 09:07:03 +01:00
|
|
|
#include "std/errno.h"
|
|
|
|
#include "sys/UserMemory.h"
|
|
|
|
#include "thread/PIT.h"
|
2022-10-15 13:17:26 +02:00
|
|
|
#include "thread/Scheduler.h"
|
2022-10-30 09:07:03 +01:00
|
|
|
#include "utils/Time.h"
|
|
|
|
#include <sys/types.h>
|
2022-10-15 13:17:26 +02:00
|
|
|
|
2022-10-30 09:07:03 +01:00
|
|
|
static uint64_t unix_boot_time;
|
|
|
|
|
|
|
|
extern BOOTBOOT bootboot;
|
|
|
|
|
|
|
|
void clock_init()
|
2022-10-15 13:17:26 +02:00
|
|
|
{
|
2022-10-30 09:07:03 +01:00
|
|
|
unix_boot_time = unix_boottime(bootboot.datetime);
|
2022-10-15 13:17:26 +02:00
|
|
|
}
|