X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fmem.c;h=b7ae0266f6180d915d43a4faf793a56272a8d635;hb=f9bb3db89469169bb5775dc031d89e570c6fed70;hp=4b06bb752f7e105cdc25a500c94dd1b5bcec8c6f;hpb=c07f7f11e5d781b90f4d8876d12f3fc4e47309ad;p=palacios.git diff --git a/palacios/src/geekos/mem.c b/palacios/src/geekos/mem.c index 4b06bb7..b7ae026 100644 --- a/palacios/src/geekos/mem.c +++ b/palacios/src/geekos/mem.c @@ -2,7 +2,8 @@ * Physical memory allocation * Copyright (c) 2001,2003,2004 David H. Hovemeyer * Copyright (c) 2003, Jeffrey K. Hollingsworth - * $Revision: 1.12 $ + * Copyright (c) 2008, Jack Lange + * $Revision: 1.13 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". @@ -211,10 +212,10 @@ void Init_Mem(struct Boot_Info* bootInfo) initrdAddr = vmmMemEnd; initrdEnd = Round_Up_To_Page(initrdAddr + s_ramdiskSize); PrintBoth("mem.c(%d) Move ramdisk(%dB) from %x to %x", __LINE__, s_ramdiskSize, g_ramdiskImage, initrdAddr); - memcpy(initrdAddr, g_ramdiskImage, s_ramdiskSize); + memcpy((ulong_t *)initrdAddr, (ulong_t *)g_ramdiskImage, s_ramdiskSize); PrintBoth(" done\n"); PrintBoth("mem.c(%d) Set 0 to unused bytes in the last ramdisk page from %x to %x", __LINE__, initrdAddr+s_ramdiskSize, initrdEnd); - memset(initrdAddr+s_ramdiskSize, 0, initrdEnd-(initrdAddr+s_ramdiskSize)); + memset((ulong_t *)initrdAddr+s_ramdiskSize, 0, initrdEnd-(initrdAddr+s_ramdiskSize)); PrintBoth(" done\n"); /* * Zheng 08/03/2008