2011-12-22 16:19:25 +01:00
|
|
|
/**
|
|
|
|
* \brief Startup code for Genode applications on ARM
|
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2007-04-28
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2012-01-03 15:35:05 +01:00
|
|
|
* Copyright (C) 2007-2012 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:
|
|
|
|
|
|
|
|
ldr sp, .initial_sp
|
|
|
|
b _main
|
|
|
|
|
|
|
|
.initial_sp: .word _stack_high
|
|
|
|
|
|
|
|
.globl __dso_handle
|
|
|
|
__dso_handle:
|
|
|
|
.long 0
|
|
|
|
|
|
|
|
/*--- .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:
|
|
|
|
.space 64*1024
|
|
|
|
.globl _stack_high
|
|
|
|
_stack_high:
|
|
|
|
|
2012-11-28 11:33:19 +01:00
|
|
|
/*
|
|
|
|
* Symbol referenced by ldso's crt0.s, which is needed by base-hw only.
|
|
|
|
* It is defined here merely to resolve the symbol for non-base-hw
|
|
|
|
* platforms.
|
|
|
|
*/
|
|
|
|
.globl _main_utcb
|
|
|
|
_main_utcb: .long 0
|