mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:36:21 +00:00
[NTOS:MM] Add support for NX page-faults
This commit is contained in:
parent
4d043aa05e
commit
a00378a1a1
4 changed files with 40 additions and 1 deletions
|
@ -98,6 +98,7 @@
|
|||
#define MI_IS_PAGE_WRITEABLE(x) ((x)->u.Hard.Writable == 1)
|
||||
#endif
|
||||
#define MI_IS_PAGE_COPY_ON_WRITE(x)((x)->u.Hard.CopyOnWrite == 1)
|
||||
#define MI_IS_PAGE_EXECUTABLE(x) ((x)->u.Hard.NoExecute == 0)
|
||||
#define MI_IS_PAGE_DIRTY(x) ((x)->u.Hard.Dirty == 1)
|
||||
#define MI_MAKE_OWNER_PAGE(x) ((x)->u.Hard.Owner = 1)
|
||||
#if !defined(CONFIG_SMP)
|
||||
|
@ -109,6 +110,7 @@
|
|||
/* Macros to identify the page fault reason from the error code */
|
||||
#define MI_IS_NOT_PRESENT_FAULT(FaultCode) !BooleanFlagOn(FaultCode, 0x1)
|
||||
#define MI_IS_WRITE_ACCESS(FaultCode) BooleanFlagOn(FaultCode, 0x2)
|
||||
#define MI_IS_INSTRUCTION_FETCH(FaultCode) BooleanFlagOn(FaultCode, 0x10)
|
||||
|
||||
/* On x64, these are the same */
|
||||
#define MI_WRITE_VALID_PPE MI_WRITE_VALID_PTE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue