]> xenbits.xensource.com Git - xen.git/commit
xen/arm32: head: Replace load_paddr with adr_l when they are equivalent
authorAyan Kumar Halder <ayan.kumar.halder@amd.com>
Fri, 27 Oct 2023 18:07:15 +0000 (19:07 +0100)
committerJulien Grall <jgrall@amazon.com>
Thu, 16 Nov 2023 14:06:38 +0000 (14:06 +0000)
commit9b807e23e7c5337f21f502ba26cf3262876dd431
tree72b99b1642e8d8e70657d9f19be5e3ff53af86b7
parent046f13a2b3b4f66a10cc395d45bcf8dc6793f537
xen/arm32: head: Replace load_paddr with adr_l when they are equivalent

Before the MMU is turned on, PC uses physical address. Thus, one can use adr_l
instead of load_paddr to obtain the physical address of a symbol.

The only exception (for this replacement) is create_table_entry() which is
called before and after MMU is turned on.

Also, in lookup_processor_type() "r10" is no longer used. The reason being
__lookup_processor_type uses adr_l (thus r10 is no longer used to obtain the
physical address offset). Consequently, there is no need to save/restore r10.

Signed-off-by: Ayan Kumar Halder <ayan.kumar.halder@amd.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
[jgrall: Reword comment on top of __lookup_processor_type]
Signed-off-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/arm32/head.S