Cosmetic. Remove #if 0 definition of vtophys() - it predates 4MB pages.

Remove avtophys(), it isn't referenced anywhere.
This commit is contained in:
peter 2002-07-08 08:14:28 +00:00
parent 6388278e1c
commit 4b40f24125
2 changed files with 0 additions and 16 deletions

View File

@ -162,7 +162,6 @@ extern pd_entry_t IdlePTD; /* physical address of "Idle" state directory */
* the corresponding pde that in turn maps it.
*/
#define vtopte(va) (PTmap + i386_btop(va))
#define avtopte(va) (APTmap + i386_btop(va))
/*
@ -184,16 +183,9 @@ pmap_kextract(vm_offset_t va)
return pa;
}
#if 0
#define vtophys(va) (((vm_offset_t) (*vtopte(va))&PG_FRAME) | ((vm_offset_t)(va) & PAGE_MASK))
#else
#define vtophys(va) pmap_kextract(((vm_offset_t) (va)))
#endif
#define avtophys(va) (((vm_offset_t) (*avtopte(va))&PG_FRAME) | ((vm_offset_t)(va) & PAGE_MASK))
#endif
/*
* Pmap stuff
*/

View File

@ -162,7 +162,6 @@ extern pd_entry_t IdlePTD; /* physical address of "Idle" state directory */
* the corresponding pde that in turn maps it.
*/
#define vtopte(va) (PTmap + i386_btop(va))
#define avtopte(va) (APTmap + i386_btop(va))
/*
@ -184,16 +183,9 @@ pmap_kextract(vm_offset_t va)
return pa;
}
#if 0
#define vtophys(va) (((vm_offset_t) (*vtopte(va))&PG_FRAME) | ((vm_offset_t)(va) & PAGE_MASK))
#else
#define vtophys(va) pmap_kextract(((vm_offset_t) (va)))
#endif
#define avtophys(va) (((vm_offset_t) (*avtopte(va))&PG_FRAME) | ((vm_offset_t)(va) & PAGE_MASK))
#endif
/*
* Pmap stuff
*/