aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/graphics')
-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) {