diff options
author | Marvin Borner | 2021-06-02 22:27:59 +0200 |
---|---|---|
committer | Marvin Borner | 2021-06-02 22:27:59 +0200 |
commit | 98e15f73f090c32b5197ecec0845c408d4a54608 (patch) | |
tree | 31490731c74b45e2450de56c0c4ea4abd3f3b54d /kernel/inc/drivers/cpu.h | |
parent | 91ba8d02037cc27c7b44f1bfd492c42ccd0af042 (diff) |
Huge scheduler rewrite and other things
Diffstat (limited to 'kernel/inc/drivers/cpu.h')
-rw-r--r-- | kernel/inc/drivers/cpu.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/kernel/inc/drivers/cpu.h b/kernel/inc/drivers/cpu.h index 75e0495..36b8928 100644 --- a/kernel/inc/drivers/cpu.h +++ b/kernel/inc/drivers/cpu.h @@ -4,6 +4,7 @@ #define CPU_H #include <def.h> +#include <proc.h> UNUSED_FUNC static inline void spinlock(u32 *ptr) { @@ -21,9 +22,12 @@ void outb(u16 port, u8 data); void outw(u16 port, u16 data); void outl(u16 port, u32 data); +void fpu_init(struct proc *proc); +void fpu_save(struct proc *proc); +void fpu_restore(struct proc *proc); + void cpu_print(void); void cpu_enable_features(void); -void fpu_restore(void); u32 cr0_get(void); void cr0_set(u32 cr0); @@ -35,9 +39,6 @@ void cr4_set(u32 cr4); void clac(void); void stac(void); -void cli(void); -void sti(void); - struct cpuid { u32 eax; u32 ebx; |