Skip to content
Commit f6d9b869 authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Phil Elwell
Browse files

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

commit 3bcf906b

 upstream.

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 6339f488
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