1
0
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:
Peter Wemm 2001-11-16 02:06:06 +00:00
parent 9ea6d9ef6a
commit 704be0159c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86438
2 changed files with 4 additions and 4 deletions

View File

@ -2547,7 +2547,7 @@ pmap_prefault(pmap, addra, entry)
vm_page_t m, mpte; vm_page_t m, mpte;
vm_object_t object; vm_object_t object;
if (!curproc || (pmap != vmspace_pmap(curproc->p_vmspace))) if (!curthread || (pmap != vmspace_pmap(curthread->td_proc->p_vmspace)))
return; return;
object = entry->object.vm_object; object = entry->object.vm_object;
@ -2787,7 +2787,7 @@ pmap_remove_pages(pmap, sva, eva)
int s; int s;
#ifdef PMAP_REMOVE_PAGES_CURPROC_ONLY #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"); printf("warning: pmap_remove_pages called with non-current pmap\n");
return; return;
} }

View File

@ -1959,7 +1959,7 @@ pmap_prefault(pmap, addra, entry)
vm_page_t m, mpte; vm_page_t m, mpte;
vm_object_t object; vm_object_t object;
if (!curproc || (pmap != vmspace_pmap(curproc->p_vmspace))) if (!curthread || (pmap != vmspace_pmap(curthread->td_proc->p_vmspace)))
return; return;
object = entry->object.vm_object; 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; int s;
#ifdef PMAP_REMOVE_PAGES_CURPROC_ONLY #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"); printf("warning: pmap_remove_pages called with non-current pmap\n");
return; return;
} }