diff options
Diffstat (limited to 'vbe.c')
-rw-r--r-- | vbe.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -137,8 +137,8 @@ static int vbe_check_vbe_info(void) /* set up registers for the interrupt call. */ memset(®s, 0, sizeof(regs)); regs.eax = 0x4f00; - regs.es = (u_int32_t)(mem - LRMI_base_addr()) >> 4; - regs.edi = (u_int32_t)(mem - LRMI_base_addr()) & 0x0f; + regs.es = (uintptr_t)(mem - LRMI_base_addr()) >> 4; + regs.edi = (uintptr_t)(mem - LRMI_base_addr()) & 0x0f; memcpy(mem, "VBE2", 4); /* do it. */ @@ -231,8 +231,8 @@ static int vbe_get_edid_info(char *edid, int port) regs.eax = 0x4f15; regs.ebx = 0x0001; regs.ecx = port; - regs.es = (u_int32_t)(mem - LRMI_base_addr()) >> 4; - regs.edi = (u_int32_t)(mem - LRMI_base_addr()) & 0x0f; + regs.es = (uintptr_t)(mem - LRMI_base_addr()) >> 4; + regs.edi = (uintptr_t)(mem - LRMI_base_addr()) & 0x0f; /* do it. */ iopl(3); |