X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fgeekos%2Fmem.c;h=45df0b1b52f9a13ad0a499619c9e9bd8afcfbd2e;hb=7a1c54e7fb92e936bb8f5923ceda6f633ebf6077;hp=1b51cce0eb17111385976b604807987cd91081f1;hpb=4b93282ac2e60cd4d74b1e0be8ac758933140413;p=palacios.releases.git diff --git a/palacios/src/geekos/mem.c b/palacios/src/geekos/mem.c index 1b51cce..45df0b1 100644 --- a/palacios/src/geekos/mem.c +++ b/palacios/src/geekos/mem.c @@ -2,7 +2,7 @@ * Physical memory allocation * Copyright (c) 2001,2003,2004 David H. Hovemeyer * Copyright (c) 2003, Jeffrey K. Hollingsworth - * $Revision: 1.11 $ + * $Revision: 1.13 $ * * This is free software. You are permitted to use, * redistribute, and modify it as specified in the file "COPYING". @@ -211,10 +211,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