diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2014-08-20 08:02:38 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2014-08-20 08:02:38 +0000 |
commit | 14fb2177844d4273084180e366a07da86072ced1 (patch) | |
tree | 6928c16bf61998fe6b84e3c36b876ce1fd2d3751 /sys/sys | |
parent | 0ee7262a721910a5a9f2fb1f83593f9ee9e4ab17 (diff) | |
download | src-14fb2177844d4273084180e366a07da86072ced1.tar.gz src-14fb2177844d4273084180e366a07da86072ced1.zip |
Add arch-specific macro SFBUF_PHYS_DMAP(), which should translate the
physical address of the page to direct map address, in case
SFBUF_OPTIONAL_DIRECT_MAP returns true. The case of PowerPC AIM
64bit, where the page physical address is identical to the direct map
address, is accidental.
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=270201
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/sf_buf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sf_buf.h b/sys/sys/sf_buf.h index 7ab944328e99..d3bb037c2445 100644 --- a/sys/sys/sf_buf.h +++ b/sys/sys/sf_buf.h @@ -113,7 +113,7 @@ sf_buf_kva(struct sf_buf *sf) { #ifdef SFBUF_OPTIONAL_DIRECT_MAP if (SFBUF_OPTIONAL_DIRECT_MAP) - return (VM_PAGE_TO_PHYS((vm_page_t)sf)); + return (SFBUF_PHYS_DMAP(VM_PAGE_TO_PHYS((vm_page_t)sf))); #endif return (sf->kva); |