/** * \file * \brief Startup code * * \date 06/03/2003 * \author Frank Mehnert */ /* * (c) 2003-2009 Author(s) * economic rights: Technische Universität Dresden (Germany) * * This file is part of TUD:OS and distributed under the terms of the * GNU General Public License 2. * Please see the COPYING-GPL-2 file for details. */ #define __ASSEMBLY__ #include /*--- .text (program code) -------------------------*/ .text .globl _real_start _real_start: /* Clear the base pointer so that stack backtraces will work. */ xorl %ebp,%ebp /* Mind the argc that is popped off the stack! */ mov $_stack_top-16, %esp jmp _start /*--- my stack -------------------------------------*/ .bss _stack_bottom: .space 0x4000 _stack_top: