Skip to content

Commit 510224c

Browse files
mrutland-armwildea01
authored andcommitted
arm64: head.S: fix up stale comments
In commit 23c8a50 ("arm64: kernel: use ordinary return/argument register for el2_setup()"), we stopped using w20 as a global stash of the boot mode flag, and instead pass this around in w0 as a function parameter. Unfortunately, we missed a couple of comments, which still refer to the old convention of using w20/x20. This patch fixes up the comments to describe the code as it currently works. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will.deacon@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent 117f572 commit 510224c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm64/kernel/head.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ ENTRY(kimage_vaddr)
483483
* If we're fortunate enough to boot at EL2, ensure that the world is
484484
* sane before dropping to EL1.
485485
*
486-
* Returns either BOOT_CPU_MODE_EL1 or BOOT_CPU_MODE_EL2 in x20 if
486+
* Returns either BOOT_CPU_MODE_EL1 or BOOT_CPU_MODE_EL2 in w0 if
487487
* booted in EL1 or EL2 respectively.
488488
*/
489489
ENTRY(el2_setup)
@@ -628,7 +628,7 @@ ENDPROC(el2_setup)
628628

629629
/*
630630
* Sets the __boot_cpu_mode flag depending on the CPU boot mode passed
631-
* in x20. See arch/arm64/include/asm/virt.h for more info.
631+
* in w0. See arch/arm64/include/asm/virt.h for more info.
632632
*/
633633
set_cpu_boot_mode_flag:
634634
adr_l x1, __boot_cpu_mode

0 commit comments

Comments
 (0)