arm64: head: remove __PHYS_OFFSET
authorMark Rutland <mark.rutland@arm.com>
Wed, 29 Jun 2022 04:12:07 +0000 (09:42 +0530)
committerWill Deacon <will@kernel.org>
Wed, 29 Jun 2022 09:28:33 +0000 (10:28 +0100)
commitbdbcd22d491212c266589892f0818c65a2bc4704
treec43e4ffcef3c0bc93fe99268cd521f854edfe98b
parentfbf6ad5efe95665c188248b6abee94f4bf296604
arm64: head: remove __PHYS_OFFSET

It's very easy to confuse __PHYS_OFFSET and PHYS_OFFSET. To clarify
things, let's remove __PHYS_OFFSET and use KERNEL_START directly, with
comments to show that we're using physical address, as we do for other
objects.

At the same time, update the comment regarding the kernel entry address
to mention __pa(KERNEL_START) rather than __pa(PAGE_OFFSET).

There should be no functional change as a result of this patch.

Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will@kernel.org>
Acked-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Anshuman Khandual <anshuman.khandual@arm.com>
Link: https://lore.kernel.org/r/20220629041207.1670133-1-anshuman.khandual@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/head.S