aboutsummaryrefslogtreecommitdiff
path: root/contrib/loaders/flash/rsl10/rom_launcher.S
blob: 70f000e72fa1d33bbd113e6e3ba728685403cc35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* SPDX-License-Identifier: GPL-2.0-or-later */

/***************************************************************************
 *   Copyright (C) 2022 by Toms Stūrmanis                                  *
 *   toms.sturmanis@gmail.com                                              *
 ***************************************************************************/

	.text
	.syntax unified
	.cpu cortex-m4
	.thumb
    .align 8

/*
 * Params :
 * r0-r2 = arguments
 * r3 = target address in rom
 */

	.thumb_func
	.global _start
_start:
launch_program_in_rom:
    // variables are already set, addres to jump is in r3
    blx r3
exit:
	// Wait for OpenOCD
	bkpt	#0x00