summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel/scs.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm64/kernel/scs.c')
-rw-r--r--arch/arm64/kernel/scs.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm64/kernel/scs.c b/arch/arm64/kernel/scs.c
new file mode 100644
index 000000000..e8f7ff45d
--- /dev/null
+++ b/arch/arm64/kernel/scs.c
@@ -0,0 +1,16 @@
+// 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