mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Converge with i386/pmap.c - dont refer to curproc, use curthread.
This commit is contained in:
parent
9ea6d9ef6a
commit
704be0159c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86438
@ -2547,7 +2547,7 @@ pmap_prefault(pmap, addra, entry)
|
||||
vm_page_t m, mpte;
|
||||
vm_object_t object;
|
||||
|
||||
if (!curproc || (pmap != vmspace_pmap(curproc->p_vmspace)))
|
||||
if (!curthread || (pmap != vmspace_pmap(curthread->td_proc->p_vmspace)))
|
||||
return;
|
||||
|
||||
object = entry->object.vm_object;
|
||||
@ -2787,7 +2787,7 @@ pmap_remove_pages(pmap, sva, eva)
|
||||
int s;
|
||||
|
||||
#ifdef PMAP_REMOVE_PAGES_CURPROC_ONLY
|
||||
if (!curproc || (pmap != vmspace_pmap(curproc->p_vmspace))) {
|
||||
if (!curthread || (pmap != vmspace_pmap(curthread->td_proc->p_vmspace))) {
|
||||
printf("warning: pmap_remove_pages called with non-current pmap\n");
|
||||
return;
|
||||
}
|
||||
|
@ -1959,7 +1959,7 @@ pmap_prefault(pmap, addra, entry)
|
||||
vm_page_t m, mpte;
|
||||
vm_object_t object;
|
||||
|
||||
if (!curproc || (pmap != vmspace_pmap(curproc->p_vmspace)))
|
||||
if (!curthread || (pmap != vmspace_pmap(curthread->td_proc->p_vmspace)))
|
||||
return;
|
||||
|
||||
object = entry->object.vm_object;
|
||||
@ -2192,7 +2192,7 @@ pmap_remove_pages(pmap_t pmap, vm_offset_t sva, vm_offset_t eva)
|
||||
int s;
|
||||
|
||||
#ifdef PMAP_REMOVE_PAGES_CURPROC_ONLY
|
||||
if (!curproc || (pmap != vmspace_pmap(curproc->p_vmspace))) {
|
||||
if (!curthread || (pmap != vmspace_pmap(curthread->td_proc->p_vmspace))) {
|
||||
printf("warning: pmap_remove_pages called with non-current pmap\n");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user