[ros-diffs] [hbirr] 16596: Replaced KERNEL_BASE by MmSystemRangeStart.

hbirr at svn.reactos.com hbirr at svn.reactos.com
Sat Jul 16 14:36:10 CEST 2005


Replaced KERNEL_BASE by MmSystemRangeStart.
Modified: trunk/reactos/ntoskrnl/ke/i386/exp.c
Modified: trunk/reactos/ntoskrnl/mm/marea.c
  _____  

Modified: trunk/reactos/ntoskrnl/ke/i386/exp.c
--- trunk/reactos/ntoskrnl/ke/i386/exp.c	2005-07-16 12:18:16 UTC
(rev 16595)
+++ trunk/reactos/ntoskrnl/ke/i386/exp.c	2005-07-16 12:35:34 UTC
(rev 16596)
@@ -469,7 +469,7 @@

  *        Complete CPU context
  */
 {
-   unsigned int cr2;
+   ULONG_PTR cr2;
    NTSTATUS Status;
    ULONG Esp0;
 
@@ -528,7 +528,7 @@
     */
    if (ExceptionNr == 14)
      {
-        if (Ke386NoExecute && Tf->ErrorCode & 0x10 && cr2 >=
KERNEL_BASE)
+        if (Ke386NoExecute && Tf->ErrorCode & 0x10 && cr2 >=
(ULONG_PTR)MmSystemRangeStart)
 	{
            KEBUGCHECKWITHTF(ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY, 0,
0, 0, 0, Tf);
 	}
  _____  

Modified: trunk/reactos/ntoskrnl/mm/marea.c
--- trunk/reactos/ntoskrnl/mm/marea.c	2005-07-16 12:18:16 UTC (rev
16595)
+++ trunk/reactos/ntoskrnl/mm/marea.c	2005-07-16 12:35:34 UTC (rev
16596)
@@ -971,7 +971,7 @@

       *BaseAddress = MM_ROUND_DOWN(*BaseAddress, Granularity);
 
       if (AddressSpace->LowestAddress == MmSystemRangeStart &&
-          *BaseAddress < (PVOID)KERNEL_BASE)
+          *BaseAddress < MmSystemRangeStart)
       {
          CHECKPOINT;
          return STATUS_ACCESS_VIOLATION;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050716/a99473ad/attachment.html


More information about the Ros-diffs mailing list