diff options
author | jhb <jhb@FreeBSD.org> | 2005-12-06 21:09:01 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2005-12-06 21:09:01 +0000 |
commit | 0b37b8af54c1ea5009c429ba66c21949b0d93769 (patch) | |
tree | ad60d21258ea9e7b24db67918791f1df1b4b0641 /sys/amd64 | |
parent | 62350809a7f0ad034d15dc194ffca70404e18250 (diff) | |
download | FreeBSD-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/amd64')
-rw-r--r-- | sys/amd64/include/pmap.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/amd64/include/pmap.h b/sys/amd64/include/pmap.h index 504d9f8..c4ca99a 100644 --- a/sys/amd64/include/pmap.h +++ b/sys/amd64/include/pmap.h @@ -46,7 +46,7 @@ #define _MACHINE_PMAP_H_ /* - * Page-directory and page-table entires follow this format, with a few + * Page-directory and page-table entries follow this format, with a few * of the fields not present here and there, depending on a lot of things. */ /* ---- Intel Nomenclature ---- */ @@ -171,14 +171,12 @@ extern u_int64_t KPML4phys; /* physical address of kernel level 4 */ #ifdef _KERNEL /* * virtual address to page table entry and - * to physical address. Likewise for alternate address space. + * to physical address. * Note: these work recursively, thus vtopte of a pte will give * the corresponding pde that in turn maps it. */ pt_entry_t *vtopte(vm_offset_t); -vm_paddr_t pmap_kextract(vm_offset_t); - -#define vtophys(va) pmap_kextract(((vm_offset_t) (va))) +#define vtophys(va) pmap_kextract((vm_offset_t)(va)) static __inline pt_entry_t pte_load(pt_entry_t *ptep) @@ -291,6 +289,7 @@ extern vm_offset_t virtual_end; void pmap_bootstrap(vm_paddr_t *); void pmap_kenter(vm_offset_t va, vm_paddr_t pa); void *pmap_kenter_temporary(vm_paddr_t pa, int i); +vm_paddr_t pmap_kextract(vm_offset_t); void pmap_kremove(vm_offset_t); void *pmap_mapdev(vm_paddr_t, vm_size_t); void pmap_unmapdev(vm_offset_t, vm_size_t); |