[ros-diffs] [tkreuzer] 50369: [NTOSKRNL] Remove broken definition of SharedUserdata and use correct SharedUserData instead. Fixes a crash on real Hardware. Patch by Daniel Zimmermann (netzimme at googlemail do...

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Wed Jan 12 13:40:35 UTC 2011


Author: tkreuzer
Date: Wed Jan 12 13:40:34 2011
New Revision: 50369

URL: http://svn.reactos.org/svn/reactos?rev=50369&view=rev
Log:
[NTOSKRNL]
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.

Modified:
    trunk/reactos/include/ndk/ketypes.h
    trunk/reactos/ntoskrnl/ps/psmgr.c

Modified: trunk/reactos/include/ndk/ketypes.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ndk/ketypes.h?rev=50369&r1=50368&r2=50369&view=diff
==============================================================================
--- trunk/reactos/include/ndk/ketypes.h [iso-8859-1] (original)
+++ trunk/reactos/include/ndk/ketypes.h [iso-8859-1] Wed Jan 12 13:40:34 2011
@@ -118,7 +118,6 @@
 #define DISPATCH_LENGTH                 106
 #endif
 
-#define SharedUserdata                  ((KUSER_SHARED_DATA *CONST)(USER_SHARED_DATA|KSEG0_BASE))
 #else
 
 //

Modified: trunk/reactos/ntoskrnl/ps/psmgr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ps/psmgr.c?rev=50369&r1=50368&r2=50369&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ps/psmgr.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ps/psmgr.c [iso-8859-1] Wed Jan 12 13:40:34 2011
@@ -212,7 +212,7 @@
     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);




More information about the Ros-diffs mailing list