--- ./hw/mips_r4k.c_orig 2006-07-31 12:11:32.000000000 +0200 +++ ./hw/mips_r4k.c 2006-07-31 12:14:55.000000000 +0200 @@ -195,7 +195,7 @@ void mips_r4kc_init (int ram_size, int v const char *initrd_filename) { char buf[1024]; - int64_t entry = 0; + uint64_t entry = 0; unsigned long bios_offset; int io_memory; int ret; @@ -253,7 +253,7 @@ void mips_r4kc_init (int ram_size, int v } /* Store command line. */ - strcpy (phys_ram_base + (16 << 20) - 256, kernel_cmdline); + strcpy ((char *)phys_ram_base + (16 << 20) - 256, kernel_cmdline); /* FIXME: little endian support */ *(int *)(phys_ram_base + (16 << 20) - 260) = tswap32 (0x12345678); *(int *)(phys_ram_base + (16 << 20) - 264) = tswap32 (ram_size);