diff options
author | Ian Moffett <ian@osmora.org> | 2024-02-26 23:00:49 -0500 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-02-26 23:01:43 -0500 |
commit | 0584b545dfa1136ca080863f2fca988b9af5fd2b (patch) | |
tree | 00780d9b2477e8e50497319720964c3a614e7658 /sys/arch/amd64/amd64 | |
parent | 0425722963289ba8ef65d9cc7a1c7bc82d27914f (diff) |
kernel: pmap: Use PROT_ instead of PMAP_ prefix
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/arch/amd64/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/pmap.c b/sys/arch/amd64/amd64/pmap.c index 8a21f63..2fcab57 100644 --- a/sys/arch/amd64/amd64/pmap.c +++ b/sys/arch/amd64/amd64/pmap.c @@ -60,9 +60,9 @@ pmap_prot_to_pte(vm_prot_t prot) { uint64_t pte_flags = PTE_P | PTE_NX; - if (__TEST(prot, PMAP_WRITABLE)) + if (__TEST(prot, PROT_WRITE)) pte_flags |= PTE_RW; - if (__TEST(prot, PMAP_EXEC)) + if (__TEST(prot, PROT_EXEC)) pte_flags &= ~(PTE_NX); return pte_flags; |