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  /* Mind the argc that is popped off the stack! */
28  lis   %r1, (_stack_top-16)@ha
29  addi  %r1, %r1, (_stack_top-16)@l
30  b     _start
31
32/*--- my stack -------------------------------------*/
33.section ".bss", "aw"
34.global _stack_bottom
35_stack_bottom:
36	.space 0x4000
37.global _stack_top
38_stack_top:
39