genode/os/src/lib/ldso/arm/crt0.s

30 lines
569 B
ArmAsm
Raw Normal View History

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_ldso
_start_ldso:
ldr r2, .initial_sp
str sp, [r2]
ldr sp, .stack_high
2011-12-22 16:19:25 +01:00
bl init_rtld
b _main
.initial_sp: .word __initial_sp
.stack_high: .word _stack_high
2011-12-22 16:19:25 +01:00