summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/arm64/bti/start.S
diff options
context:
space:
mode:
Diffstat (limited to 'tools/testing/selftests/arm64/bti/start.S')
-rw-r--r--tools/testing/selftests/arm64/bti/start.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/testing/selftests/arm64/bti/start.S b/tools/testing/selftests/arm64/bti/start.S
new file mode 100644
index 000000000..831f952e0
--- /dev/null
+++ b/tools/testing/selftests/arm64/bti/start.S
@@ -0,0 +1,14 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2019 Arm Limited
+ * Original author: Dave Martin <Dave.Martin@arm.com>
+ */
+
+#include "assembler.h"
+
+startfn _start
+ mov x0, sp
+ b start
+endfn
+
+emit_aarch64_feature_1_and