aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics/vesa.c
diff options
context:
space:
mode:
authorMarvin Borner2019-10-31 23:14:05 +0100
committerMarvin Borner2019-10-31 23:14:05 +0100
commitbe023cf57d763ff5b17dbb2a3afec156ca54a65d (patch)
tree39c3e562319bdb8cf605f4e0f73851427189eaf7 /src/kernel/graphics/vesa.c
parentc7e755cb843593db1eedb26c5c24932bbe743745 (diff)
Fixed several warnings
Diffstat (limited to 'src/kernel/graphics/vesa.c')
-rw-r--r--src/kernel/graphics/vesa.c4
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, &regs);
paging_enable();
kfree(edid);
- return *edid;
+ return *(struct edid_data *) edid;
}
void vbe_set_mode(unsigned short mode) {