1/** 2 * \file 3 * \brief Startup code 4 * 5 * \date 06/03/2003 6 * \author Frank Mehnert <fm3@os.inf.tu-dresden.de> */ 7 8/* 9 * (c) 2003-2009 Author(s) 10 * economic rights: Technische Universität Dresden (Germany) 11 * 12 * This file is part of TUD:OS and distributed under the terms of the 13 * GNU General Public License 2. 14 * Please see the COPYING-GPL-2 file for details. 15 */ 16 17#define __ASSEMBLY__ 18#include <l4/sys/compiler.h> 19 20/*--- .text (program code) -------------------------*/ 21 .text 22 23 .globl _real_start 24_real_start: 25 /* Clear the base pointer so that stack backtraces will work. */ 26 xor %rbp,%rbp 27 /* Mind the argc that is popped off the stack! */ 28 mov $_stack_top-16, %rsp 29 jmp _start 30/*--- my stack -------------------------------------*/ 31 .bss 32_stack_bottom: 33 .space 0x8000 34_stack_top: 35 36