summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include/pmap.h
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2002-10-12 20:35:56 +0000
committermarcel <marcel@FreeBSD.org>2002-10-12 20:35:56 +0000
commite7eb3591f6a5c8786a1cc7434872b76124563be4 (patch)
treea5e1e8c632f337ca85a5269ca71739f2ef0962bd /sys/ia64/include/pmap.h
parent2fdf0ba50ed92dcffb1abd09afb959714349ccd0 (diff)
downloadFreeBSD-src-e7eb3591f6a5c8786a1cc7434872b76124563be4.zip
FreeBSD-src-e7eb3591f6a5c8786a1cc7434872b76124563be4.tar.gz
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
Diffstat (limited to 'sys/ia64/include/pmap.h')
-rw-r--r--sys/ia64/include/pmap.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/ia64/include/pmap.h b/sys/ia64/include/pmap.h
index 8ed0712..03ef3bf 100644
--- a/sys/ia64/include/pmap.h
+++ b/sys/ia64/include/pmap.h
@@ -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)))
OpenPOWER on IntegriCloud