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_ldso
|
|
|
|
_start_ldso:
|
|
|
|
|
2012-11-28 10:23:35 +01:00
|
|
|
ldr r2, .initial_utcb
|
|
|
|
str r0, [r2]
|
|
|
|
|
2011-12-22 16:19:25 +01:00
|
|
|
ldr sp, .initial_sp
|
|
|
|
bl init_rtld
|
|
|
|
b _main
|
|
|
|
|
2012-11-28 10:23:35 +01:00
|
|
|
.initial_sp: .word _stack_high
|
|
|
|
.initial_utcb: .word _main_utcb
|
2011-12-22 16:19:25 +01:00
|
|
|
|