diff options
| author | Alan Cox <alc@FreeBSD.org> | 2006-08-08 04:01:29 +0000 |
|---|---|---|
| committer | Alan Cox <alc@FreeBSD.org> | 2006-08-08 04:01:29 +0000 |
| commit | 079ba18aacdfcf95964c63db89d67099f695177f (patch) | |
| tree | 804b07cb9adb495c5a9a32d9b2b62e50a6f12bd0 | |
| parent | 7d2498889f3352bc15e9532df93332f541bdea3e (diff) | |
Notes
| -rw-r--r-- | sys/amd64/amd64/trap.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index ebad9a0f69eb..1b6488f22e83 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -566,8 +566,14 @@ trap_pfault(frame, usermode) map = &vm->vm_map; } + /* + * PGEX_I is defined only if the execute disable bit capability is + * supported and enabled; otherwise, that bit is reserved, i.e., zero. + */ if (frame->tf_err & PGEX_W) ftype = VM_PROT_WRITE; + else if (frame->tf_err & PGEX_I) + ftype = VM_PROT_EXECUTE; else ftype = VM_PROT_READ; |
