/*******************************************************************************
 * Copyright (c) 2018 Renesas Electronics Corporation. All rights reserved.
 *
 * DESCRIPTION   : Dummy FW start code
 ******************************************************************************/

	.global	code_start
	.global	_dummy_fw_main
	.global	___ghsend_RT_stack	/* RT-SRAM stack Logical end address	*/

	.section ".text"
	.align 2
code_start:

	mov	r0, r1
	mov	r0, r2
	mov	r0, r3
	mov	r0, r4
	mov	r0, r5
	mov	r0, r6
	mov	r0, r7
	mov	r0, r8
	mov	r0, r9
	mov	r0, r10
	mov	r0, r11
	mov	r0, r12
	mov	r0, r13
	mov	r0, r14
	mov	r0, r15
	mov	r0, r16
	mov	r0, r17
	mov	r0, r18
	mov	r0, r19
	mov	r0, r20
	mov	r0, r21
	mov	r0, r22
	mov	r0, r23
	mov	r0, r24
	mov	r0, r25
	mov	r0, r26
	mov	r0, r27
	mov	r0, r28
	mov	r0, r29
	ldsr	r0, 0, 0
	ldsr	r0, 16, 0

	mov	___ghsend_RT_stack, sp

	jarl	_dummy_fw_main, lp

	jmp	[r10]
	nop
	halt


	.section ".padding"
	.align 4


