mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-01 06:04:51 +00:00
o Retire pmap_pageable(). It's an advisory routine that none
of our platforms implements.
This commit is contained in:
parent
10f23b4ad0
commit
6508a194aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102399
|
@ -2556,29 +2556,6 @@ pmap_copy_page(vm_page_t msrc, vm_page_t mdst)
|
|||
bcopy((caddr_t) src, (caddr_t) dst, PAGE_SIZE);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Routine: pmap_pageable
|
||||
* Function:
|
||||
* Make the specified pages (by pmap, offset)
|
||||
* pageable (or not) as requested.
|
||||
*
|
||||
* A page which is not pageable may not take
|
||||
* a fault; therefore, its page table entry
|
||||
* must remain valid for the duration.
|
||||
*
|
||||
* This routine is merely advisory; pmap_enter
|
||||
* will specify that these pages are to be wired
|
||||
* down (or not) as appropriate.
|
||||
*/
|
||||
void
|
||||
pmap_pageable(pmap, sva, eva, pageable)
|
||||
pmap_t pmap;
|
||||
vm_offset_t sva, eva;
|
||||
boolean_t pageable;
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if the pmap's pv is one of the first
|
||||
* 16 pvs linked to from this page. This count may
|
||||
|
|
|
@ -2865,29 +2865,6 @@ pmap_copy_page(vm_page_t src, vm_page_t dst)
|
|||
*CMAP2 = 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Routine: pmap_pageable
|
||||
* Function:
|
||||
* Make the specified pages (by pmap, offset)
|
||||
* pageable (or not) as requested.
|
||||
*
|
||||
* A page which is not pageable may not take
|
||||
* a fault; therefore, its page table entry
|
||||
* must remain valid for the duration.
|
||||
*
|
||||
* This routine is merely advisory; pmap_enter
|
||||
* will specify that these pages are to be wired
|
||||
* down (or not) as appropriate.
|
||||
*/
|
||||
void
|
||||
pmap_pageable(pmap, sva, eva, pageable)
|
||||
pmap_t pmap;
|
||||
vm_offset_t sva, eva;
|
||||
boolean_t pageable;
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if the pmap's pv is one of the first
|
||||
* 16 pvs linked to from this page. This count may
|
||||
|
|
|
@ -2865,29 +2865,6 @@ pmap_copy_page(vm_page_t src, vm_page_t dst)
|
|||
*CMAP2 = 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Routine: pmap_pageable
|
||||
* Function:
|
||||
* Make the specified pages (by pmap, offset)
|
||||
* pageable (or not) as requested.
|
||||
*
|
||||
* A page which is not pageable may not take
|
||||
* a fault; therefore, its page table entry
|
||||
* must remain valid for the duration.
|
||||
*
|
||||
* This routine is merely advisory; pmap_enter
|
||||
* will specify that these pages are to be wired
|
||||
* down (or not) as appropriate.
|
||||
*/
|
||||
void
|
||||
pmap_pageable(pmap, sva, eva, pageable)
|
||||
pmap_t pmap;
|
||||
vm_offset_t sva, eva;
|
||||
boolean_t pageable;
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if the pmap's pv is one of the first
|
||||
* 16 pvs linked to from this page. This count may
|
||||
|
|
|
@ -2075,27 +2075,6 @@ pmap_copy_page(vm_page_t msrc, vm_page_t mdst)
|
|||
bcopy((caddr_t) src, (caddr_t) dst, PAGE_SIZE);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Routine: pmap_pageable
|
||||
* Function:
|
||||
* Make the specified pages (by pmap, offset)
|
||||
* pageable (or not) as requested.
|
||||
*
|
||||
* A page which is not pageable may not take
|
||||
* a fault; therefore, its page table entry
|
||||
* must remain valid for the duration.
|
||||
*
|
||||
* This routine is merely advisory; pmap_enter
|
||||
* will specify that these pages are to be wired
|
||||
* down (or not) as appropriate.
|
||||
*/
|
||||
void
|
||||
pmap_pageable(pmap_t pmap, vm_offset_t sva, vm_offset_t eva,
|
||||
boolean_t pageable)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if the pmap's pv is one of the first
|
||||
* 16 pvs linked to from this page. This count may
|
||||
|
|
|
@ -1279,15 +1279,6 @@ pmap_page_protect(vm_page_t m, vm_prot_t prot)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Make the specified page pageable (or not). Unneeded.
|
||||
*/
|
||||
void
|
||||
pmap_pageable(pmap_t pmap, vm_offset_t sva, vm_offset_t eva,
|
||||
boolean_t pageable)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if the pmap's pv is one of the first
|
||||
* 16 pvs linked to from this page. This count may
|
||||
|
|
|
@ -1279,15 +1279,6 @@ pmap_page_protect(vm_page_t m, vm_prot_t prot)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Make the specified page pageable (or not). Unneeded.
|
||||
*/
|
||||
void
|
||||
pmap_pageable(pmap_t pmap, vm_offset_t sva, vm_offset_t eva,
|
||||
boolean_t pageable)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if the pmap's pv is one of the first
|
||||
* 16 pvs linked to from this page. This count may
|
||||
|
|
|
@ -1279,15 +1279,6 @@ pmap_page_protect(vm_page_t m, vm_prot_t prot)
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Make the specified page pageable (or not). Unneeded.
|
||||
*/
|
||||
void
|
||||
pmap_pageable(pmap_t pmap, vm_offset_t sva, vm_offset_t eva,
|
||||
boolean_t pageable)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if the pmap's pv is one of the first
|
||||
* 16 pvs linked to from this page. This count may
|
||||
|
|
|
@ -1596,15 +1596,6 @@ pmap_copy_page(vm_page_t msrc, vm_page_t mdst)
|
|||
bcopy((void *)src, (void *)dst, PAGE_SIZE);
|
||||
}
|
||||
|
||||
/*
|
||||
* Make the specified page pageable (or not). Unneeded.
|
||||
*/
|
||||
void
|
||||
pmap_pageable(pmap_t pmap, vm_offset_t sva, vm_offset_t eva,
|
||||
boolean_t pageable)
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns true if the pmap's pv is one of the first
|
||||
* 16 pvs linked to from this page. This count may
|
||||
|
|
|
@ -113,7 +113,6 @@ void pmap_object_init_pt(pmap_t pmap, vm_offset_t addr,
|
|||
int pagelimit);
|
||||
boolean_t pmap_page_exists_quick(pmap_t pmap, vm_page_t m);
|
||||
void pmap_page_protect(vm_page_t m, vm_prot_t prot);
|
||||
void pmap_pageable(pmap_t, vm_offset_t, vm_offset_t, boolean_t);
|
||||
vm_offset_t pmap_phys_address(int);
|
||||
void pmap_pinit(pmap_t);
|
||||
void pmap_pinit0(pmap_t);
|
||||
|
|
|
@ -931,12 +931,6 @@ vm_fault_wire(map, start, end, user_wire)
|
|||
vm_offset_t va;
|
||||
int rv;
|
||||
|
||||
/*
|
||||
* Inform the physical mapping system that the range of addresses may
|
||||
* not fault, so that page tables and such can be locked down as well.
|
||||
*/
|
||||
pmap_pageable(map->pmap, start, end, FALSE);
|
||||
|
||||
/*
|
||||
* We simulate a fault to get the page and enter it in the physical
|
||||
* map. For user wiring, we only ask for read access on currently
|
||||
|
@ -985,12 +979,6 @@ vm_fault_unwire(map, start, end)
|
|||
}
|
||||
}
|
||||
mtx_unlock(&Giant);
|
||||
|
||||
/*
|
||||
* Inform the physical mapping system that the range of addresses may
|
||||
* fault, so that page tables and such may be unwired themselves.
|
||||
*/
|
||||
pmap_pageable(pmap, start, end, TRUE);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue