mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Replaced KERNEL_BASE by MmSystemRangeStart.
svn path=/trunk/; revision=16596
This commit is contained in:
parent
5ec1eff5db
commit
ada13b04e0
2 changed files with 3 additions and 3 deletions
|
@ -469,7 +469,7 @@ KiTrapHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr)
|
||||||
* Complete CPU context
|
* Complete CPU context
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
unsigned int cr2;
|
ULONG_PTR cr2;
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
ULONG Esp0;
|
ULONG Esp0;
|
||||||
|
|
||||||
|
@ -528,7 +528,7 @@ KiTrapHandler(PKTRAP_FRAME Tf, ULONG ExceptionNr)
|
||||||
*/
|
*/
|
||||||
if (ExceptionNr == 14)
|
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);
|
KEBUGCHECKWITHTF(ATTEMPTED_EXECUTE_OF_NOEXECUTE_MEMORY, 0, 0, 0, 0, Tf);
|
||||||
}
|
}
|
||||||
|
|
|
@ -971,7 +971,7 @@ MmCreateMemoryArea(PEPROCESS Process,
|
||||||
*BaseAddress = MM_ROUND_DOWN(*BaseAddress, Granularity);
|
*BaseAddress = MM_ROUND_DOWN(*BaseAddress, Granularity);
|
||||||
|
|
||||||
if (AddressSpace->LowestAddress == MmSystemRangeStart &&
|
if (AddressSpace->LowestAddress == MmSystemRangeStart &&
|
||||||
*BaseAddress < (PVOID)KERNEL_BASE)
|
*BaseAddress < MmSystemRangeStart)
|
||||||
{
|
{
|
||||||
CHECKPOINT;
|
CHECKPOINT;
|
||||||
return STATUS_ACCESS_VIOLATION;
|
return STATUS_ACCESS_VIOLATION;
|
||||||
|
|
Loading…
Reference in a new issue