summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2002-07-08 08:14:28 +0000
committerpeter <peter@FreeBSD.org>2002-07-08 08:14:28 +0000
commit4b40f241256c3ed18362a0f5df2ed9d3e76b45bc (patch)
tree2c48473dcb4adc527cb356203d1507eb9a1a38ce
parent6388278e1cf3aa63029418a23e805a4b9040e20d (diff)
downloadFreeBSD-src-4b40f241256c3ed18362a0f5df2ed9d3e76b45bc.zip
FreeBSD-src-4b40f241256c3ed18362a0f5df2ed9d3e76b45bc.tar.gz
Cosmetic. Remove #if 0 definition of vtophys() - it predates 4MB pages.
Remove avtophys(), it isn't referenced anywhere.
-rw-r--r--sys/amd64/include/pmap.h8
-rw-r--r--sys/i386/include/pmap.h8
2 files changed, 0 insertions, 16 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h
index ca3fe52..e6ac669 100644
--- a/sys/amd64/include/pmap.h
+++ b/sys/amd64/include/pmap.h
@@ -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
*/
diff --git a/sys/i386/include/pmap.h b/sys/i386/include/pmap.h
index ca3fe52..e6ac669 100644
--- a/sys/i386/include/pmap.h
+++ b/sys/i386/include/pmap.h
@@ -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
*/
OpenPOWER on IntegriCloud