xref: /linux/tools/testing/selftests/arm64/bti/btitest.h (revision cf21f328fcafacf4f96e7a30ef9dceede1076378)
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 #ifndef BTITEST_H
8 #define BTITEST_H
9 
10 /* Trampolines for calling the test stubs: */
11 void call_using_br_x0(void (*)(void));
12 void call_using_br_x16(void (*)(void));
13 void call_using_blr(void (*)(void));
14 
15 /* Test stubs: */
16 void nohint_func(void);
17 void bti_none_func(void);
18 void bti_c_func(void);
19 void bti_j_func(void);
20 void bti_jc_func(void);
21 void paciasp_func(void);
22 
23 #endif /* !BTITEST_H */
24