summaryrefslogtreecommitdiff
path: root/tools/src/chainload_asm.S
blob: 361ec8f4a888dd09ef9d405b000c5849e776475f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: MIT */

.text

.globl _chainload_stub_start
.globl _chainload_stub_end
.type _chainload_stub_start, @function

_chainload_stub_start:
1:
    ldp x5, x6, [x1], #16
    stp x5, x6, [x2]
    dc cvau, x2
    ic ivau, x2
    add x2, x2, #16
    sub x3, x3, #16
    cbnz x3, 1b

    br x4
_chainload_stub_end: