]> xenbits.xensource.com Git - xen.git/commit
xen/arm: introduce new helper parse_static_mem_prop and acquire_static_memory_bank
authorPenny Zheng <penny.zheng@arm.com>
Mon, 14 Feb 2022 03:19:49 +0000 (03:19 +0000)
committerJulien Grall <jgrall@amazon.com>
Thu, 17 Feb 2022 19:43:02 +0000 (19:43 +0000)
commitba560aa0bdd8044b831cdd41ea9db6a26ec6978f
tree1aa575bf002ed1fc4402de440af0e41878b768d4
parent02d552627c2b2b4e8874ff9b6e9a47b728964c18
xen/arm: introduce new helper parse_static_mem_prop and acquire_static_memory_bank

Later, we will introduce assign_static_memory_11 for allocating static
memory for direct-map domains, and it will share a lot common codes with
the existing allocate_static_memory.

In order not to bring a lot of duplicate codes, and also to make the whole
code more readable, this commit extracts common codes into two new helpers
parse_static_mem_prop and acquire_static_memory_bank.

Signed-off-by: Penny Zheng <penny.zheng@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Tested-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/domain_build.c