mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
xen/arm: setup: use maddr_to_mfn rather than _mfn(paddr_to_pfn(...))
Signed-off-by: Julien Grall <julien.grall@arm.com> Reviewed-by: George Dunlap <george.dunlap@citrix.com> Acked-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
1 parent
2d6a8daef8
commit
c8d474db60
1 file changed
+2
-2
@@ -268,8 +268,8 @@ void __init discard_initial_modules(void)
|
||||
if ( mi->module[i].kind == BOOTMOD_XEN )
|
||||
continue;
|
||||
|
||||
if ( !mfn_valid(_mfn(paddr_to_pfn(s))) ||
|
||||
!mfn_valid(_mfn(paddr_to_pfn(e))))
|
||||
if ( !mfn_valid(maddr_to_mfn(s)) ||
|
||||
!mfn_valid(maddr_to_mfn(e)) )
|
||||
continue;
|
||||
|
||||
dt_unreserved_regions(s, e, init_domheap_pages, 0);
|
||||
|
||||