aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux
diff options
context:
space:
mode:
Diffstat (limited to 'com32/elflink/ldlinux')
-rw-r--r--com32/elflink/ldlinux/chainboot.c2
-rw-r--r--com32/elflink/ldlinux/loadhigh.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/com32/elflink/ldlinux/chainboot.c b/com32/elflink/ldlinux/chainboot.c
index 27d4618c..1b9217f5 100644
--- a/com32/elflink/ldlinux/chainboot.c
+++ b/com32/elflink/ldlinux/chainboot.c
@@ -61,7 +61,7 @@ void chainboot_file(const char *file, uint32_t type)
reg.eax.l = max;
reg.ebx.l = 0;
reg.edx.w[0] = 0;
- reg.edi.l = (uint32_t)buf;
+ reg.edi.l = (uintptr_t)buf;
reg.ebp.l = -1; /* XXX: limit? */
reg.esi.w[0] = rv;
diff --git a/com32/elflink/ldlinux/loadhigh.c b/com32/elflink/ldlinux/loadhigh.c
index 0f2f8428..a13d58ff 100644
--- a/com32/elflink/ldlinux/loadhigh.c
+++ b/com32/elflink/ldlinux/loadhigh.c
@@ -54,8 +54,8 @@ void pm_load_high(com32sys_t *regs)
bytes = regs->eax.l;
zero_mask = regs->edx.w[0];
- buf = (char *)regs->edi.l;
- limit = (char *)(regs->ebp.l & ~zero_mask);
+ buf = (char *)(uintptr_t)regs->edi.l;
+ limit = (char *)(uintptr_t)(regs->ebp.l & ~zero_mask);
file = handle_to_file(regs->esi.w[0]);
fs = file->fs;