Skip to content

Commit 7957a3d

Browse files
Dong Aishengwilldeacon
authored andcommitted
arm64: head: fix code comments in set_cpu_boot_mode_flag
Up to here, the CPU boot mode can either be EL1 or EL2. Correct the code comments a bit. Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> Acked-by: Catalin Marinas <catalin.marinas@arm.com> Acked-by: Mark Rutland <mark.rutland@arm.com> Link: https://lore.kernel.org/r/20210518101405.1048860-5-aisheng.dong@nxp.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent f91671b commit 7957a3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/arm64/kernel/head.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ SYM_FUNC_START_LOCAL(set_cpu_boot_mode_flag)
550550
cmp w0, #BOOT_CPU_MODE_EL2
551551
b.ne 1f
552552
add x1, x1, #4
553-
1: str w0, [x1] // This CPU has booted in EL1
553+
1: str w0, [x1] // Save CPU boot mode
554554
dmb sy
555555
dc ivac, x1 // Invalidate potentially stale cache line
556556
ret

0 commit comments

Comments
 (0)