fix some 64 bit warnings

svn path=/branches/ros-amd64-bringup/; revision=36332
This commit is contained in:
Timo Kreuzer
2008-09-19 22:42:40 +00:00
parent afd9bec15b
commit 7f388bab02
7 changed files with 12 additions and 10 deletions
+1 -1
View File
@@ -612,7 +612,7 @@ CcZeroData (IN PFILE_OBJECT FileObject,
{
CurrentLength = Length;
}
MmInitializeMdl(Mdl, (PVOID)WriteOffset.u.LowPart, CurrentLength);
MmInitializeMdl(Mdl, (PVOID)(ULONG_PTR)WriteOffset.QuadPart, CurrentLength);
Mdl->MdlFlags |= (MDL_PAGES_LOCKED | MDL_IO_PAGE_READ);
for (i = 0; i < ((Mdl->Size - sizeof(MDL)) / sizeof(ULONG)); i++)
{
+1 -1
View File
@@ -370,7 +370,7 @@ ExRaiseHardError(IN NTSTATUS ErrorStatus,
IN ULONG ValidResponseOptions,
OUT PULONG Response)
{
ULONG Size;
SIZE_T Size;
UNICODE_STRING CapturedParams[MAXIMUM_HARDERROR_PARAMETERS];
ULONG i;
PULONG_PTR UserData = NULL, ParameterBase;
+2 -2
View File
@@ -196,7 +196,7 @@ extern ULONG KiDPCTimeout;
/* INTERNAL KERNEL FUNCTIONS ************************************************/
/* Finds a new thread to run */
NTSTATUS
LONG_PTR
FASTCALL
KiSwapThread(
IN PKTHREAD Thread,
@@ -527,7 +527,7 @@ VOID
FASTCALL
KiUnwaitThread(
IN PKTHREAD Thread,
IN NTSTATUS WaitStatus,
IN LONG_PTR WaitStatus,
IN KPRIORITY Increment
);
+3 -3
View File
@@ -57,7 +57,7 @@ KiActivateWaiterQueue(IN PKQUEUE Queue)
KWAIT_BLOCK,
WaitListEntry);
Thread = WaitBlock->Thread;
KiUnwaitThread(Thread, (NTSTATUS)QueueEntry, IO_NO_INCREMENT);
KiUnwaitThread(Thread, (LONG_PTR)QueueEntry, IO_NO_INCREMENT);
}
}
}
@@ -102,7 +102,7 @@ KiInsertQueue(IN PKQUEUE Queue,
Thread = WaitBlock->Thread;
/* Remove the queue from the thread's wait list */
Thread->WaitStatus = (NTSTATUS)Entry;
Thread->WaitStatus = (LONG_PTR)Entry;
if (Thread->WaitListEntry.Flink) RemoveEntryList(&Thread->WaitListEntry);
/* Increase the active threads and remove any wait reason */
@@ -239,7 +239,7 @@ KeRemoveQueue(IN PKQUEUE Queue,
IN PLARGE_INTEGER Timeout OPTIONAL)
{
PLIST_ENTRY QueueEntry;
NTSTATUS Status;
LONG_PTR Status;
PKTHREAD Thread = KeGetCurrentThread();
PKQUEUE PreviousQueue;
PKWAIT_BLOCK WaitBlock = &Thread->WaitBlock[0];
+3 -1
View File
@@ -1353,7 +1353,9 @@ KeTerminateThread(IN KPRIORITY Increment)
SavedEntry = Entry;
/* Now try to do the exchange */
Entry = InterlockedCompareExchangePointer(ListHead, ThreadAddr, Entry);
Entry = InterlockedCompareExchangePointer((PVOID*)ListHead,
ThreadAddr,
Entry);
/* Break out if the change was succesful */
} while (Entry != SavedEntry);
+1 -1
View File
@@ -291,7 +291,7 @@ KiSelectNextThread(IN PKPRCB Prcb)
return Thread;
}
NTSTATUS
LONG_PTR
FASTCALL
KiSwapThread(IN PKTHREAD CurrentThread,
IN PKPRCB Prcb)
+1 -1
View File
@@ -87,7 +87,7 @@ KiUnlinkThread(IN PKTHREAD Thread,
VOID
FASTCALL
KiUnwaitThread(IN PKTHREAD Thread,
IN NTSTATUS WaitStatus,
IN LONG_PTR WaitStatus,
IN KPRIORITY Increment)
{
/* Unlink the thread */