ptrace: mmu user read/write macros
This commit is contained in:
parent
4f510c7fef
commit
78196ef5b6
@ -35,5 +35,5 @@ union PML {
|
||||
uint64_t raw;
|
||||
};
|
||||
|
||||
#define mmu_page_is_user_readable(p) (0)
|
||||
#define mmu_page_is_user_writable(p) (0)
|
||||
#define mmu_page_is_user_readable(p) (p->bits.ap & 1)
|
||||
#define mmu_page_is_user_writable(p) ((p->bits.ap & 1) && !(p->bits.ap & 2))
|
||||
|
@ -22,3 +22,5 @@ union PML {
|
||||
uint64_t raw;
|
||||
};
|
||||
|
||||
#define mmu_page_is_user_readable(p) (p->bits.user)
|
||||
#define mmu_page_is_user_writable(p) (p->bits.writable)
|
||||
|
Loading…
Reference in New Issue
Block a user