Replaced KERNEL_BASE by MmSystemRangeStart.

svn path=/trunk/; revision=16596
This commit is contained in:
Hartmut Birr 2005-07-16 12:35:34 +00:00
parent 5ec1eff5db
commit ada13b04e0
2 changed files with 3 additions and 3 deletions

View file

@ -469,7 +469,7 @@ KiTrapHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr)
* Complete CPU context
*/
{
unsigned int cr2;
ULONG_PTR cr2;
NTSTATUS Status;
ULONG Esp0;
@ -528,7 +528,7 @@ KiTrapHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr)
*/
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);
}

View file

@ -971,7 +971,7 @@ MmCreateMemoryArea(PEPROCESS Process,
*BaseAddress = MM_ROUND_DOWN(*BaseAddress, Granularity);
if (AddressSpace->LowestAddress == MmSystemRangeStart &&
*BaseAddress < (PVOID)KERNEL_BASE)
*BaseAddress < MmSystemRangeStart)
{
CHECKPOINT;
return STATUS_ACCESS_VIOLATION;