mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 05:34:00 +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
|