Remove the dependency on ia64_cpu.h by not defining pmap_kextract()
as a trivial function that only calls ia64_tpa() and hence requires the prototype of ia64_tpa(), but by defining pmap_kextract as ia64_tpa. This solves the inclusion ordering issue in ddb/db_watch.c
This commit is contained in:
parent
d0899afa3a
commit
526a05f186
@ -59,18 +59,13 @@
|
||||
#endif
|
||||
#define MAXKPT (PAGE_SIZE/sizeof(vm_offset_t))
|
||||
|
||||
|
||||
/*
|
||||
* Routine: pmap_kextract
|
||||
* Function:
|
||||
* Extract the physical page address associated
|
||||
* kernel virtual address.
|
||||
*/
|
||||
static __inline vm_offset_t
|
||||
pmap_kextract(vm_offset_t va)
|
||||
{
|
||||
return ia64_tpa(va);
|
||||
}
|
||||
#define pmap_kextract ia64_tpa
|
||||
|
||||
#define vtophys(va) pmap_kextract(((vm_offset_t) (va)))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user