; Reset code for HST

; Version: Sourcery CodeBench 2011.03-66
; Support: https://support.codesourcery.com/GNUToolchain/

; Copyright (c) 2007, 2008, 2009, 2010 CodeSourcery, Inc.

; The authors hereby grant permission to use, copy, modify, distribute,
; and license this software and its documentation for any purpose, provided
; that existing copyright notices are retained in all copies and that this
; notice is included verbatim in any distributions.  No written agreement,
; license, or royalty fee is required for any of the authorized uses.
; Modifications to this software may be copyrighted by their authors
; and need not follow the licensing terms described here, provided that
; the new terms are clearly indicated on the first page of each file where
; they apply.

;#if defined(__thumb2__) || defined(__ARM_ARCH_6M__) || defined(__ARM_ARCH_6SM__)
.if $isdefed("__thumb2__") || $isdefed("__ARM_ARCH_6M__") || $isdefed("__ARM_ARCH_6SM__")
.macro
	.eval 1, THUMB
.endm
	.thumb
	;.thumb_func
.else
	.arm
.endif
	;.section .cs3.reset,"ax",%progbits
	.sect "cs3.reset"
	.global __cs3_reset_HST
	.asmfunc
__cs3_reset_HST:
	; jump to common start code
 .ref _start

_start_addr .word _start
.if (THUMB = 1)
	ldr	r0,_start_addr
	bx	r0
.else
	b	_start_addr
.endif
;	.pool
;	.size	__cs3_reset_HST,.-__cs3_reset_HST
	; checksum: 0173f460e3a163781ca427e4a
	.endasmfunc
