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:
Julien Grall committed 2018-04-06 09:43:29 +01:00
1 parent 2d6a8daef8
commit c8d474db60
1 file changed
+2 -2
+2 -2
View File
@@ -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);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.