[NTOSKRNL]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 12 Jan 2011 13:40:34 +0000 (13:40 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 12 Jan 2011 13:40:34 +0000 (13:40 +0000)
Remove broken definition of SharedUserdata and use correct SharedUserData instead. Fixes a crash on real Hardware. Patch by Daniel Zimmermann (netzimme at googlemail dot com)

See issue #5650 for more details.

svn path=/trunk/; revision=50369

reactos/include/ndk/ketypes.h
reactos/ntoskrnl/ps/psmgr.c

index f5ec606..9792c10 100644 (file)
@@ -118,7 +118,6 @@ Author:
 #define DISPATCH_LENGTH                 106
 #endif
 
-#define SharedUserdata                  ((KUSER_SHARED_DATA *CONST)(USER_SHARED_DATA|KSEG0_BASE))
 #else
 
 //
index 156982e..93d9cfa 100644 (file)
@@ -212,7 +212,7 @@ PspLookupKernelUserEntryPoints(VOID)
     if (KeFeatureBits & KF_FAST_SYSCALL)
     {
         /* Get user-mode sysenter stub */
-        SharedUserdata->SystemCall = (PsNtosImageBase >> (PAGE_SHIFT + 1));
+        SharedUserData->SystemCall = (PsNtosImageBase >> (PAGE_SHIFT + 1));
         Status = PspLookupSystemDllEntryPoint("KiFastSystemCall",
                                               (PVOID)&SharedUserData->
                                               SystemCall);