mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
[IA64] fix mfn_to_local_pfn() for dma context
Thanks to Kevin for tracking down this problem. This is a temporary solution until we come up with something better for ia64. Signed-off-by: Alex Williamson <alex.williamson@hp.com>
This commit is contained in:
1 parent
1dcdc118ac
commit
e836cc40e4
1 file changed
+1
-1
@@ -331,7 +331,7 @@ static inline unsigned long
|
||||
mfn_to_local_pfn(unsigned long mfn)
|
||||
{
|
||||
extern unsigned long max_mapnr;
|
||||
unsigned long pfn = mfn_to_pfn(mfn);
|
||||
unsigned long pfn = mfn_to_pfn_for_dma(mfn);
|
||||
if (!pfn_valid(pfn))
|
||||
return INVALID_P2M_ENTRY;
|
||||
return pfn;
|
||||
|
||||