Author: tkreuzer Date: Mon Feb 9 23:27:36 2009 New Revision: 39522
URL: http://svn.reactos.org/svn/reactos?rev=39522&view=rev Log: ExInitializeSystemlookasideList: Use InitializeSListHead instead of directly accessing the members ExpAllocateLocallyUniqueId: use InterlockedCompareExchange64 instead of non-portable ExfInterlockedCompareExchange64
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ex/lookas.c branches/ros-amd64-bringup/reactos/ntoskrnl/ex/uuid.c
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ex/lookas.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntoskr... ============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ex/lookas.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ex/lookas.c [iso-8859-1] Mon Feb 9 23:27:36 2009 @@ -47,9 +47,7 @@ List->Depth = 2; List->Allocate = ExAllocatePoolWithTag; List->Free = ExFreePool; - List->ListHead.Next.Next = NULL; - List->ListHead.Depth = 0; - List->ListHead.Sequence = 0; + InitializeSListHead(&List->ListHead); List->TotalAllocates = 0; List->AllocateHits = 0; List->TotalFrees = 0; @@ -75,6 +73,7 @@
/* Bind to PRCB */ #ifdef _M_AMD64 + DPRINT1("Something is missing here, Prcb = %p\n", Prcb); // FIXME #else Prcb->PPNPagedLookasideList[i].P = Entry;
Modified: branches/ros-amd64-bringup/reactos/ntoskrnl/ex/uuid.c URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/ntoskr... ============================================================================== --- branches/ros-amd64-bringup/reactos/ntoskrnl/ex/uuid.c [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/ntoskrnl/ex/uuid.c [iso-8859-1] Mon Feb 9 23:27:36 2009 @@ -239,9 +239,9 @@ PrevLuid = LuidValue; NewLuid = RtlLargeIntegerAdd(PrevLuid, LuidIncrement); - } while(ExfInterlockedCompareExchange64(&LuidValue.QuadPart, - &NewLuid.QuadPart, - &PrevLuid.QuadPart) != PrevLuid.QuadPart); + } while(InterlockedCompareExchange64(&LuidValue.QuadPart, + NewLuid.QuadPart, + PrevLuid.QuadPart) != PrevLuid.QuadPart);
LocallyUniqueId->LowPart = NewLuid.u.LowPart; LocallyUniqueId->HighPart = NewLuid.u.HighPart;