diff options
author | Marvin Borner | 2019-10-31 23:14:05 +0100 |
---|---|---|
committer | Marvin Borner | 2019-10-31 23:14:05 +0100 |
commit | be023cf57d763ff5b17dbb2a3afec156ca54a65d (patch) | |
tree | 39c3e562319bdb8cf605f4e0f73851427189eaf7 /src/kernel/graphics/vesa.c | |
parent | c7e755cb843593db1eedb26c5c24932bbe743745 (diff) |
Fixed several warnings
Diffstat (limited to 'src/kernel/graphics/vesa.c')
-rw-r--r-- | src/kernel/graphics/vesa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/graphics/vesa.c b/src/kernel/graphics/vesa.c index 858ed95..ba8d84b 100644 --- a/src/kernel/graphics/vesa.c +++ b/src/kernel/graphics/vesa.c @@ -24,14 +24,14 @@ struct edid_data get_edid() { regs.ax = 0x4F15; regs.bx = 0x01; // BL regs.es = 0; - regs.di = (unsigned short) edid; + regs.di = (uintptr_t) &edid; paging_disable(); int32(0x10, ®s); paging_enable(); kfree(edid); - return *edid; + return *(struct edid_data *) edid; } void vbe_set_mode(unsigned short mode) { |