diff options
author | jah <jah@FreeBSD.org> | 2015-10-23 12:03:25 +0000 |
---|---|---|
committer | jah <jah@FreeBSD.org> | 2015-10-23 12:03:25 +0000 |
commit | 075add24963a3db8760d588931ebad0e20259482 (patch) | |
tree | c4548edd5edeaf22ba0e2fba0d139a2ee16e021d /sys/vm/vm_page.h | |
parent | 7eb36dd3f94bbdd22cd44fd0fd1c86eb868bef1f (diff) | |
download | FreeBSD-src-075add24963a3db8760d588931ebad0e20259482.zip FreeBSD-src-075add24963a3db8760d588931ebad0e20259482.tar.gz |
Remove unclear comment about address truncation in busdma. Add (hopefully much clearer) comment at declaration of PHYS_TO_VM_PAGE().
Noted by: avg
Diffstat (limited to 'sys/vm/vm_page.h')
-rw-r--r-- | sys/vm/vm_page.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index dedd6ac..3dbd7f7 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -375,6 +375,11 @@ extern long first_page; /* first physical page number */ #define VM_PAGE_TO_PHYS(entry) ((entry)->phys_addr) +/* + * PHYS_TO_VM_PAGE() Returns the vm_page_t object that represents a memory + * page to which the given physical address belongs. The correct vm_page_t + * object is returned for addresses that are not page-aligned. + */ vm_page_t PHYS_TO_VM_PAGE(vm_paddr_t pa); /* |