mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 10:04:12 +08:00
871e100e43
Defining static shadow call stacks is not architecture-specific, so move the DEFINE_SCS() macro into the core header file. Tested-by: Sami Tolvanen <samitolvanen@google.com> Reviewed-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Will Deacon <will@kernel.org>
17 lines
323 B
C
17 lines
323 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Shadow Call Stack support.
|
|
*
|
|
* Copyright (C) 2019 Google LLC
|
|
*/
|
|
|
|
#include <linux/percpu.h>
|
|
#include <linux/scs.h>
|
|
|
|
DEFINE_SCS(irq_shadow_call_stack);
|
|
|
|
#ifdef CONFIG_ARM_SDE_INTERFACE
|
|
DEFINE_SCS(sdei_shadow_call_stack_normal);
|
|
DEFINE_SCS(sdei_shadow_call_stack_critical);
|
|
#endif
|