Skip to content

Commit 694f574

Browse files
benhor01willdeacon
authored andcommitted
arm64: Update comment regarding values in __boot_cpu_mode
The values stored in __boot_cpu_mode were changed without updating the comment. Rectify that. Signed-off-by: Ben Horgan <ben.horgan@arm.com> Reviewed-by: Dave Martin <Dave.Martin@arm.com> Link: https://lore.kernel.org/r/20250513124525.677736-1-ben.horgan@arm.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 29e31da commit 694f574

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/arm64/include/asm/virt.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
* __boot_cpu_mode records what mode CPUs were booted in.
6868
* A correctly-implemented bootloader must start all CPUs in the same mode:
6969
* In this case, both 32bit halves of __boot_cpu_mode will contain the
70-
* same value (either 0 if booted in EL1, BOOT_CPU_MODE_EL2 if booted in EL2).
70+
* same value (either BOOT_CPU_MODE_EL1 if booted in EL1, BOOT_CPU_MODE_EL2 if
71+
* booted in EL2).
7172
*
7273
* Should the bootloader fail to do this, the two values will be different.
7374
* This allows the kernel to flag an error when the secondaries have come up.

0 commit comments

Comments
 (0)