summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2003-05-03 04:50:19 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2003-05-03 04:50:19 -0700
commitace37225baecde53448e161ef6157f324fceb425 (patch)
tree9520d754846059c18369063ae949a8c997d6ebb8 /include
parent5422b4674d7cae2c4d86bc849b2b5d7da87b8085 (diff)
[PATCH] allow ptrace and /proc/PID/mem to read fixmap pages
This allows access to the globally shared FIXMAP mapping for ptrace and frieds, so that debuggers can sanely trace through the vsyscall sequence.
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/pgtable.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-i386/pgtable.h b/include/asm-i386/pgtable.h
index c2ef3a5479ec..6d7508ca9b4e 100644
--- a/include/asm-i386/pgtable.h
+++ b/include/asm-i386/pgtable.h
@@ -192,6 +192,7 @@ extern unsigned long pg0[1024];
* The following only work if pte_present() is true.
* Undefined behaviour if not..
*/
+static inline int pte_user(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
static inline int pte_read(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
static inline int pte_exec(pte_t pte) { return (pte).pte_low & _PAGE_USER; }
static inline int pte_dirty(pte_t pte) { return (pte).pte_low & _PAGE_DIRTY; }