Skip to content
Commit 3bcf906b authored by Ard Biesheuvel's avatar Ard Biesheuvel
Browse files

ARM: head.S: use PC relative insn sequence to calculate PHYS_OFFSET



Replace the open coded arithmetic with a simple adr_l/sub pair. This
removes some open coded arithmetic involving virtual addresses, avoids
literal pools on v7+, and slightly reduces the footprint of the code.

Reviewed-by: default avatarNicolas Pitre <nico@fluxnic.net>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent d74d2b22
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment