arm64: remove __calc_phys_offset
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 17 Mar 2015 08:14:29 +0000 (09:14 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 19 Mar 2015 19:46:02 +0000 (19:46 +0000)
commit6f4d57fa7021efbf135cfa068d56bc5035edffa1
tree24f44e36f384fc88729185466cbcb5a2e0f67518
parent8b0a95753a34b5c8b2e483e0e5b1d67761e32c5f
arm64: remove __calc_phys_offset

This removes the function __calc_phys_offset and all open coded
virtual to physical address translations using the offset kept
in x28.

Instead, just use absolute or PC-relative symbol references as
appropriate when referring to virtual or physical addresses,
respectively.

Tested-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/head.S