| 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 | |
| 9 | startfn call_using_br_x0 |
| 10 | bti c |
| 11 | br x0 |
| 12 | endfn |
| 13 | |
| 14 | startfn call_using_br_x16 |
| 15 | bti c |
| 16 | mov x16, x0 |
| 17 | br x16 |
| 18 | endfn |
| 19 | |
| 20 | startfn call_using_blr |
| 21 | paciasp |
| 22 | stp x29, x30, [sp, #-16]! |
| 23 | blr x0 |
| 24 | ldp x29, x30, [sp], #16 |
| 25 | autiasp |
| 26 | ret |
| 27 | endfn |
| 28 | |
| 29 | emit_aarch64_feature_1_and |
| 30 |
