forked from Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
407 B
29 lines
407 B
/* SPDX-License-Identifier: GPL-2.0 */ |
|
/* |
|
* Copyright (C) 2019 Arm Limited |
|
* Original author: Dave Martin <Dave.Martin@arm.com> |
|
*/ |
|
|
|
#include "assembler.h" |
|
|
|
startfn call_using_br_x0 |
|
bti c |
|
br x0 |
|
endfn |
|
|
|
startfn call_using_br_x16 |
|
bti c |
|
mov x16, x0 |
|
br x16 |
|
endfn |
|
|
|
startfn call_using_blr |
|
paciasp |
|
stp x29, x30, [sp, #-16]! |
|
blr x0 |
|
ldp x29, x30, [sp], #16 |
|
autiasp |
|
ret |
|
endfn |
|
|
|
emit_aarch64_feature_1_and
|
|
|