page fault caused by instruction fetch
Posted: Wed Jan 15, 2014 11:11 pm
Hi All,
If there is one page fault, the page fault handler will get the error code
And also how this kind of page fault will be handled? Thanks for your time!
Best Wishes,
Yaohui Hu
If there is one page fault, the page fault handler will get the error code
I am a very curious about how the instruction fetch page fault is generated? I would really appreciate it if someone could give me a example.osdevwiki wrote: 31 4 0
+-----+-...-+-----+-----+-----+-----+-----+-----+
| Reserved | I/D | RSVD| U/S | W/R | P |
+-----+-...-+-----+-----+-----+-----+-----+-----+
P: When set, the fault was caused by a protection violation.
When not set, it was caused by a non-present page.
W/R: When set, write access caused the fault; otherwise read access.
U/S: When set, the fault occurred in user mode; otherwise in supervisor mode.
RSVD: When set, one or more page directory entries contain reserved bits which are set to 1.
This only applies when the PSE or PAE flags in CR4 are set to 1.
I/D: When set, the fault was caused by an instruction fetch.
This only applies when the No-Execute bit is supported and enabled.
And also how this kind of page fault will be handled? Thanks for your time!
Best Wishes,
Yaohui Hu