GK SDK 源码库: XMIPCLinuxV100R005C00SPC030 (kernel/tools/open_source excluded)
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
b ${function_name}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
bti j
|
||||
b ${function_name}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
b .
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
bti j
|
||||
b .
|
||||
@@ -0,0 +1,9 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
.data
|
||||
.globl jmptbl
|
||||
.align 4
|
||||
jmptbl: .quad 0x${jmptbl_address}
|
||||
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
.text
|
||||
.globl jmptbl
|
||||
jmptbl:
|
||||
@@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
.globl ${function_name}
|
||||
${function_name}:
|
||||
ldr x17, =jmptbl
|
||||
mov x16, #${function_offset}
|
||||
ldr x17, [x17]
|
||||
add x16, x16, x17
|
||||
br x16
|
||||
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Arm Limited. All rights reserved.
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
.globl ${function_name}
|
||||
${function_name}:
|
||||
bti jc
|
||||
ldr x17, =jmptbl
|
||||
mov x16, #${function_offset}
|
||||
ldr x17, [x17]
|
||||
add x16, x16, x17
|
||||
br x16
|
||||
Reference in New Issue
Block a user