From 81a58004d51547d074b4218f906b0b95f2b2c5dc Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 4 Aug 2022 15:58:54 +0200 Subject: syscalls: add _syscall_sleep() --- src/kernel/arch/generic.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/kernel/arch/generic.h') diff --git a/src/kernel/arch/generic.h b/src/kernel/arch/generic.h index 4a4f632..0b7b2f2 100644 --- a/src/kernel/arch/generic.h +++ b/src/kernel/arch/generic.h @@ -6,6 +6,8 @@ #include #include +struct process; + // i have no idea where else to put it // some code assumes that it's a power of 2 #define PAGE_SIZE 4096 @@ -22,6 +24,10 @@ void cpu_shutdown(void); /** on x86: waits for an IRQ */ void cpu_pause(void); +uint64_t uptime_ms(void); +void timer_schedule(struct process *p, uint64_t time); +void timer_deschedule(struct process *p); + // src/arch/i386/sysenter.s _Noreturn void sysexit(struct registers); -- cgit v1.2.3