Cosmetic. Remove #if 0 definition of vtophys() - it predates 4MB pages.
Remove avtophys(), it isn't referenced anywhere.
This commit is contained in:
parent
eecc312518
commit
fcdc053233
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99578
@ -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
|
||||
*/
|
||||
|
@ -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
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user