xref: /rk3399_ARM-atf/lib/romlib/templates/wrapper_bti.S (revision a72b9e7754a27e6ebccf79f0cc4fb7cc5a0a8a5e)
1/*
2 * Copyright (c) 2019, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6	.globl	${function_name}
7${function_name}:
8	bti	jc
9	ldr	x17, =jmptbl
10	mov	x16, #${function_offset}
11	ldr	x17, [x17]
12	add	x16, x16, x17
13	br	x16
14