diff options
author | dzwdz | 2022-08-04 15:58:54 +0200 |
---|---|---|
committer | dzwdz | 2022-08-04 15:58:54 +0200 |
commit | 81a58004d51547d074b4218f906b0b95f2b2c5dc (patch) | |
tree | 4301047fc342e165bc5a043a04b5fed44b8e8084 /src/kernel/arch/generic.h | |
parent | 4a844820866094ff7d57435a16b7c23a9126814d (diff) |
syscalls: add _syscall_sleep()
Diffstat (limited to 'src/kernel/arch/generic.h')
-rw-r--r-- | src/kernel/arch/generic.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <stdbool.h> #include <stddef.h> +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); |