]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/moe/server/src/ARCH-ppc32/crt0.S
update
[l4.git] / l4 / pkg / moe / server / src / ARCH-ppc32 / crt0.S
1 /**
2  * \file
3  * \brief       Startup code
4  *
5  * \date        06/03/2003
6  * \author      Frank Mehnert <fm3@os.inf.tu-dresden.de>
7  * \author      Sebastian Sumpf <sumpf@os.inf.tu-dresden.de> */
8
9 /*
10  * (c) 2003-2009 Author(s)
11  *     economic rights: Technische Universität Dresden (Germany)
12  *
13  * This file is part of TUD:OS and distributed under the terms of the
14  * GNU General Public License 2.
15  * Please see the COPYING-GPL-2 file for details.
16  */
17
18 #define __ASSEMBLY__
19 #include <l4/sys/compiler.h>
20
21 /*--- .text (program code) -------------------------*/
22
23 .section .text, "ax"
24 .type _real_start, @function
25 .globl _real_start
26 _real_start:
27   lis   %r1, _stack_top@ha
28   addi  %r1, %r1, _stack_top@l
29   b     _start
30
31 /*--- my stack -------------------------------------*/
32 .section ".bss", "aw"
33 .global _stack_bottom
34 _stack_bottom:
35         .space 0x4000
36 .global _stack_top
37 _stack_top: