xref: /linux/tools/testing/selftests/arm64/bti/syscall.S (revision 2a52ca7c98960aafb0eca9ef96b2d0c932171357)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2019  Arm Limited
4 * Original author: Dave Martin <Dave.Martin@arm.com>
5 */
6
7#include "assembler.h"
8
9startfn syscall
10	bti	c
11	mov	w8, w0
12	mov	x0, x1
13	mov	x1, x2
14	mov	x2, x3
15	mov	x3, x4
16	mov	x4, x5
17	mov	x5, x6
18	mov	x6, x7
19	svc	#0
20	ret
21endfn
22
23emit_aarch64_feature_1_and
24