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