2011-12-22 16:19:25 +01:00
|
|
|
/**
|
|
|
|
* \brief Startup code for Genode applications on ARM
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2007-04-28
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2013-01-10 21:44:47 +01:00
|
|
|
* Copyright (C) 2007-2013 Genode Labs GmbH
|
2011-12-22 16:19:25 +01:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
|
|
* under the terms of the GNU General Public License version 2.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*--- .text (program code) -------------------------*/
|
|
|
|
.section ".text.crt0"
|
|
|
|
|
|
|
|
.globl _start
|
|
|
|
_start:
|
|
|
|
|
2013-05-24 11:04:42 +02:00
|
|
|
ldr r4, .initial_sp
|
|
|
|
str sp, [r4]
|
|
|
|
|
|
|
|
ldr sp, .stack_high
|
2011-12-22 16:19:25 +01:00
|
|
|
b _main
|
|
|
|
|
2013-05-24 11:04:42 +02:00
|
|
|
.initial_sp: .word __initial_sp
|
|
|
|
.stack_high: .word _stack_high
|
2011-12-22 16:19:25 +01:00
|
|
|
|
|
|
|
.globl __dso_handle
|
2013-06-06 17:43:13 +02:00
|
|
|
__dso_handle: .long 0
|
2013-05-24 11:04:42 +02:00
|
|
|
|
2011-12-22 16:19:25 +01:00
|
|
|
/*--- .bss (non-initialized data) ------------------*/
|
|
|
|
.section ".bss"
|
|
|
|
|
2012-06-12 14:37:00 +02:00
|
|
|
.p2align 4
|
2011-12-22 16:19:25 +01:00
|
|
|
.globl _stack_low
|
|
|
|
_stack_low:
|
2013-12-01 22:20:04 +01:00
|
|
|
.space 128*1024
|
2011-12-22 16:19:25 +01:00
|
|
|
.globl _stack_high
|
|
|
|
_stack_high:
|
|
|
|
|
2013-06-06 17:43:13 +02:00
|
|
|
/* initial value of the SP register */
|
|
|
|
.globl __initial_sp
|
|
|
|
__initial_sp: .space 4
|