Eliminate the remaining uses of "register".

Convert the remaining K&R-style function declarations to ANSI-style.
This commit is contained in:
Alan Cox 2006-07-01 05:01:05 +00:00
parent 78a6842d2f
commit ad84c5de83

View File

@ -490,8 +490,7 @@ create_pagetables(void)
* (physical) address starting relative to 0]
*/
void
pmap_bootstrap(firstaddr)
vm_paddr_t *firstaddr;
pmap_bootstrap(vm_paddr_t *firstaddr)
{
vm_offset_t va;
pt_entry_t *pte, *unused;
@ -1132,8 +1131,7 @@ pmap_unuse_pt(pmap_t pmap, vm_offset_t va, pd_entry_t ptepde)
}
void
pmap_pinit0(pmap)
struct pmap *pmap;
pmap_pinit0(pmap_t pmap)
{
PMAP_LOCK_INIT(pmap);
@ -1148,8 +1146,7 @@ pmap_pinit0(pmap)
* such as one in a vmspace structure.
*/
void
pmap_pinit(pmap)
register struct pmap *pmap;
pmap_pinit(pmap_t pmap)
{
vm_page_t pml4pg;
static vm_pindex_t color;
@ -1979,7 +1976,7 @@ pmap_remove(pmap_t pmap, vm_offset_t sva, vm_offset_t eva)
void
pmap_remove_all(vm_page_t m)
{
register pv_entry_t pv;
pv_entry_t pv;
pmap_t pmap;
pt_entry_t *pte, tpte;
pd_entry_t ptepde;
@ -2145,7 +2142,7 @@ pmap_enter(pmap_t pmap, vm_offset_t va, vm_page_t m, vm_prot_t prot,
{
vm_paddr_t pa;
pd_entry_t *pde;
register pt_entry_t *pte;
pt_entry_t *pte;
vm_paddr_t opa;
pt_entry_t origpte, newpte;
vm_page_t mpte, om;
@ -2582,12 +2579,9 @@ pmap_object_init_pt(pmap_t pmap, vm_offset_t addr,
* The mapping must already exist in the pmap.
*/
void
pmap_change_wiring(pmap, va, wired)
register pmap_t pmap;
vm_offset_t va;
boolean_t wired;
pmap_change_wiring(pmap_t pmap, vm_offset_t va, boolean_t wired)
{
register pt_entry_t *pte;
pt_entry_t *pte;
/*
* Wiring is not a hardware characteristic so there is no need to
@ -2796,9 +2790,7 @@ pmap_copy_page(vm_page_t msrc, vm_page_t mdst)
* subset of pmaps for proper page aging.
*/
boolean_t
pmap_page_exists_quick(pmap, m)
pmap_t pmap;
vm_page_t m;
pmap_page_exists_quick(pmap_t pmap, vm_page_t m)
{
pv_entry_t pv;
int loops = 0;
@ -2982,7 +2974,7 @@ pmap_is_prefaultable(pmap_t pmap, vm_offset_t addr)
static __inline void
pmap_clear_ptes(vm_page_t m, long bit)
{
register pv_entry_t pv;
pv_entry_t pv;
pmap_t pmap;
pt_entry_t pbits, *pte;
@ -3052,7 +3044,7 @@ pmap_page_protect(vm_page_t m, vm_prot_t prot)
int
pmap_ts_referenced(vm_page_t m)
{
register pv_entry_t pv, pvf, pvn;
pv_entry_t pv, pvf, pvn;
pmap_t pmap;
pt_entry_t *pte;
pt_entry_t v;
@ -3125,9 +3117,7 @@ pmap_clear_reference(vm_page_t m)
* NOT real memory.
*/
void *
pmap_mapdev(pa, size)
vm_paddr_t pa;
vm_size_t size;
pmap_mapdev(vm_paddr_t pa, vm_size_t size)
{
vm_offset_t va, tmpva, offset;
@ -3151,9 +3141,7 @@ pmap_mapdev(pa, size)
}
void
pmap_unmapdev(va, size)
vm_offset_t va;
vm_size_t size;
pmap_unmapdev(vm_offset_t va, vm_size_t size)
{
vm_offset_t base, offset, tmpva;
@ -3173,9 +3161,7 @@ pmap_unmapdev(va, size)
* perform the pmap work for mincore
*/
int
pmap_mincore(pmap, addr)
pmap_t pmap;
vm_offset_t addr;
pmap_mincore(pmap_t pmap, vm_offset_t addr)
{
pt_entry_t *ptep, pte;
vm_page_t m;