Commit 17eebd1a authored by Suzuki K Poulose's avatar Suzuki K Poulose Committed by Will Deacon

arm64: Add cpu_panic_kernel helper

During the activation of a secondary CPU, we could report serious
configuration issues and hence request to crash the kernel. We do
this for CPU ASID bit check now. We will need it also for handling
mismatched exception levels for the CPUs with VHE. Hence, add a
helper to do the same for reusability.

Cc: Mark Rutland <>
Cc: Will Deacon <>
Cc: Catalin Marinas <>
Cc: Marc Zyngier <>
Signed-off-by: default avatarSuzuki K Poulose <>
Signed-off-by: default avatarWill Deacon <>
parent 6afedcd2
......@@ -113,6 +113,17 @@ static inline void update_cpu_boot_status(int val)
* The calling secondary CPU has detected serious configuration mismatch,
* which calls for a kernel panic. Update the boot status and park the calling
* CPU.
static inline void cpu_panic_kernel(void)
#endif /* ifndef __ASSEMBLY__ */
#endif /* ifndef __ASM_SMP_H */
......@@ -75,8 +75,7 @@ void verify_cpu_asid_bits(void)
pr_crit("CPU%d: smaller ASID size(%u) than boot CPU (%u)\n",
smp_processor_id(), asid, asid_bits);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment