summaryrefslogtreecommitdiffstats
path: root/sys/alpha
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2005-12-06 21:09:01 +0000
committerjhb <jhb@FreeBSD.org>2005-12-06 21:09:01 +0000
commit0b37b8af54c1ea5009c429ba66c21949b0d93769 (patch)
treead60d21258ea9e7b24db67918791f1df1b4b0641 /sys/alpha
parent62350809a7f0ad034d15dc194ffca70404e18250 (diff)
downloadFreeBSD-src-0b37b8af54c1ea5009c429ba66c21949b0d93769.zip
FreeBSD-src-0b37b8af54c1ea5009c429ba66c21949b0d93769.tar.gz
- Cleanup whitespace and extra ()s in vtophys() macros.
- Move vtophys() macros next to vtopte() where vtopte() exists to match comments above vtopte(). - Remove references to the alternate address space in the comment above vtopte(). amd64 never had the alternate address space, and i386 lost it prior to PAE support being added. - s/entires/entries/ in comments. Reviewed by: alc
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/include/pmap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/alpha/include/pmap.h b/sys/alpha/include/pmap.h
index cc5902b..9dca988 100644
--- a/sys/alpha/include/pmap.h
+++ b/sys/alpha/include/pmap.h
@@ -126,6 +126,7 @@ extern pt_entry_t PTlev1pte; /* pte that maps lev1 page table */
*/
#define vtopte(va) (PTmap + (alpha_btop(va) \
& ((1 << 3*ALPHA_PTSHIFT)-1)))
+#define vtophys(va) pmap_kextract((vm_offset_t)(va))
/*
* Routine: pmap_kextract
@@ -145,8 +146,6 @@ pmap_kextract(vm_offset_t va)
return pa;
}
-#define vtophys(va) pmap_kextract(((vm_offset_t) (va)))
-
static __inline vm_offset_t
alpha_XXX_dmamap(vm_offset_t va)
{
OpenPOWER on IntegriCloud