src/flash/nor: flash driver for RSL10
[fw/openocd] / contrib / loaders / flash / rsl10 / rom_launcher.S
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2
3 /***************************************************************************
4  *   Copyright (C) 2022 by Toms StÅ«rmanis                                  *
5  *   toms.sturmanis@gmail.com                                              *
6  ***************************************************************************/
7
8         .text
9         .syntax unified
10         .cpu cortex-m4
11         .thumb
12     .align 8
13
14 /*
15  * Params :
16  * r0-r2 = arguments
17  * r3 = target address in rom
18  */
19
20         .thumb_func
21         .global _start
22 _start:
23 launch_program_in_rom:
24     // variables are already set, addres to jump is in r3
25     blx r3
26 exit:
27         // Wait for OpenOCD
28         bkpt    #0x00