x86_64: pmap: fix pmap_get setting vm flags in wrong output variable
This commit is contained in:
+3
-3
@@ -196,15 +196,15 @@ kern_status_t pmap_get(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pte & PTE_RW) {
|
if (pte & PTE_RW) {
|
||||||
*out_pfn |= (VM_PROT_READ | VM_PROT_WRITE);
|
*out_prot |= (VM_PROT_READ | VM_PROT_WRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pte & PTE_USR) {
|
if (pte & PTE_USR) {
|
||||||
*out_pfn |= VM_PROT_USER;
|
*out_prot |= VM_PROT_USER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(pte & PTE_NX)) {
|
if (!(pte & PTE_NX)) {
|
||||||
*out_pfn |= VM_PROT_EXEC;
|
*out_prot |= VM_PROT_EXEC;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user