diff options
author | Marvin Borner | 2020-11-05 17:30:39 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-05 17:32:53 +0100 |
commit | 63e86f792167e6cc2e9600d00b184a3c83fe7498 (patch) | |
tree | 31e2d583be3ebf34782f6ec37f6c524657c40686 /kernel/drivers/fpu.c | |
parent | 916fca2161e76de67a5106b90baf00a57f2a0512 (diff) |
Added warning flags and fixed them :)
Diffstat (limited to 'kernel/drivers/fpu.c')
-rw-r--r-- | kernel/drivers/fpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/fpu.c b/kernel/drivers/fpu.c index f7eeceb..e61e267 100644 --- a/kernel/drivers/fpu.c +++ b/kernel/drivers/fpu.c @@ -7,12 +7,12 @@ void set_fpu_cw(const u16 cw) __asm__ volatile("fldcw %0" ::"m"(cw)); } -void fpu_install() +void fpu_install(void) { __asm__ volatile("clts"); u32 t = 0; __asm__ volatile("mov %%cr0, %0" : "=r"(t)); - t &= ~(1 << 2); + t &= (u32) ~(1 << 2); t |= (1 << 1); __asm__ volatile("mov %0, %%cr0" ::"r"(t)); |