diff options
| author | Nanyong Sun <[email protected]> | 2021-04-30 16:28:47 +0800 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2021-05-22 10:19:29 -0700 |
| commit | f5397c3ee0a3e2ca0a6d66d079ffcd5386b45b81 (patch) | |
| tree | 8372806f05bfd2b3cca7a2eef002302e0c3f04c8 /scripts/gdb/linux/lists.py | |
| parent | 6efb943b8616ec53a5e444193dccf1af9ad627b5 (diff) | |
riscv: mm: add _PAGE_LEAF macro
In riscv, a page table entry is leaf when any bit of read, write,
or execute bit is set. So add a macro:_PAGE_LEAF instead of
(_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC), which is frequently used
to determine if it is a leaf page. This make code easier to read,
without any functional change.
Signed-off-by: Nanyong Sun <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions