diff options
| author | Roland McGrath <roland@redhat.com> | 2003-05-03 04:50:19 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-05-03 04:50:19 -0700 |
| commit | ace37225baecde53448e161ef6157f324fceb425 (patch) | |
| tree | 9520d754846059c18369063ae949a8c997d6ebb8 /include | |
| parent | 5422b4674d7cae2c4d86bc849b2b5d7da87b8085 (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.h | 1 |
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; } |
