diff options
Diffstat (limited to 'src/devices/emulator/x86emu/sys.c')
-rw-r--r-- | src/devices/emulator/x86emu/sys.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/emulator/x86emu/sys.c b/src/devices/emulator/x86emu/sys.c index 6ff268674a..6f5a3d29c9 100644 --- a/src/devices/emulator/x86emu/sys.c +++ b/src/devices/emulator/x86emu/sys.c @@ -45,7 +45,7 @@ #include <x86emu/regs.h> #include "debug.h" #include "prim_ops.h" -#ifdef COREBOOT_VERSION +#ifdef COREBOOT_VERSION /* Coreboot needs to map printf to printk. */ #include "arch/io.h" #else #include <sys/io.h> @@ -69,7 +69,7 @@ u8 *mem_ptr(u32 addr, int size) u8 *retaddr = 0; if (addr > M.mem_size - size) { - DB(printk("mem_ptr: address %#lx out of range!\n", addr);) + DB(printk("mem_ptr: address %#x out of range!\n", addr);) HALT_SYS(); } if (addr < 0x200) { @@ -405,6 +405,6 @@ void X86EMU_prepareForInt(int num) void X86EMU_setMemBase(void *base, size_t size) { - M.mem_base = (int) base; + M.mem_base = (unsigned long) base; M.mem_size = size; } |