summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/arm64/bti/teststubs.S
blob: b62c8c35f67e78e2fbe05426bc9ca54924616fc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Copyright (C) 2019  Arm Limited
 * Original author: Dave Martin <Dave.Martin@arm.com>
 */

#include "assembler.h"

startfn bti_none_func
	bti
	ret
endfn

startfn bti_c_func
	bti	c
	ret
endfn

startfn bti_j_func
	bti	j
	ret
endfn

startfn bti_jc_func
	bti	jc
	ret
endfn

startfn paciasp_func
	paciasp
	autiasp
	ret
endfn

startfn nohint_func
	ret
endfn

emit_aarch64_feature_1_and