Modules - x86_64 compile fix to ATA and LVM
authorJohn Hodge <[email protected]>
Thu, 15 Mar 2012 14:27:44 +0000 (22:27 +0800)
committerJohn Hodge <[email protected]>
Thu, 15 Mar 2012 14:27:44 +0000 (22:27 +0800)
KernelLand/Modules/Storage/ATA/main.c
KernelLand/Modules/Storage/LVM/volumes.c

index a067430..cc1fe62 100644 (file)
@@ -328,7 +328,7 @@ size_t ATA_ReadFS(tVFS_Node *Node, off_t Offset, size_t Length, void *Buffer)
        {
                int ret = DrvUtil_ReadBlock(
                        Offset, Length, Buffer,
-                       ATA_ReadRaw, SECTOR_SIZE, (void*)disk
+                       ATA_ReadRaw, SECTOR_SIZE, (void*)(Uint)disk
                        );
                //Log("ATA_ReadFS: disk=%i, Offset=%lli, Length=%lli", disk, Offset, Length);
                //Debug_HexDump("ATA_ReadFS", Buffer, Length);
@@ -367,7 +367,7 @@ size_t ATA_WriteFS(tVFS_Node *Node, off_t Offset, size_t Length, const void *Buf
        Debug_HexDump("ATA_WriteFS", Buffer, Length);
        return DrvUtil_WriteBlock(
                Offset, Length, Buffer,
-               ATA_ReadRaw, ATA_WriteRaw, SECTOR_SIZE, (void*)disk
+               ATA_ReadRaw, ATA_WriteRaw, SECTOR_SIZE, (void*)(Uint)disk
                );
 }
 
index f8709bd..558a7aa 100644 (file)
@@ -17,7 +17,7 @@
 // --------------------------------------------------------------------
 int LVM_AddVolumeVFS(const char *Name, int FD)
 {
-       return LVM_AddVolume(Name, (void*)FD, LVM_int_VFSReadEmul, LVM_int_VFSWriteEmul);
+       return LVM_AddVolume(Name, (void*)(Uint)FD, LVM_int_VFSReadEmul, LVM_int_VFSWriteEmul);
 }
 
 int LVM_AddVolume(const char *Name, void *Ptr, tLVM_ReadFcn Read, tLVM_WriteFcn Write)
@@ -97,7 +97,7 @@ int LVM_int_VFSReadEmul(void *Arg, Uint64 BlockStart, size_t BlockCount, void *D
 
        blocksize = 512;        // TODO: Don't assume   
 
-       rv = VFS_ReadAt( (int)Arg, BlockStart * blocksize, BlockCount * blocksize, Dest );
+       rv = VFS_ReadAt( (int)(Uint)Arg, BlockStart * blocksize, BlockCount * blocksize, Dest );
        rv /= blocksize;
        return rv;
 }
@@ -109,7 +109,7 @@ int LVM_int_VFSWriteEmul(void *Arg, Uint64 BlockStart, size_t BlockCount, const
 
        blocksize = 512;        // TODO: Don't assume   
 
-       rv = VFS_WriteAt( (int)Arg, BlockStart * blocksize, BlockCount * blocksize, Source );
+       rv = VFS_WriteAt( (int)(Uint)Arg, BlockStart * blocksize, BlockCount * blocksize, Source );
        rv /= blocksize;
        return rv;
 }

UCC git Repository :: git.ucc.asn.au