2 * (c) 2009 Frank Mehnert <fm3@os.inf.tu-dresden.de>,
3 * Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
4 * economic rights: Technische Universität Dresden (Germany)
6 * This file is part of TUD:OS and distributed under the terms of the
7 * GNU General Public License 2.
8 * Please see the COPYING-GPL-2 file for details.
11 #define REALMODE_LOADING
16 #ifdef REALMODE_LOADING
25 /* We have the following problem: Our image is loaded at 0x00100000
26 * by the boot loader but we don't want to get into conflict with
27 * the AMD64 executable. Therefore we move ourself out of the way.
28 * We are linked to 0x01000000 (see ARCH-amd64/boot32/bootstrap.ld) */
33 sub $_image_start, %ecx
43 pushl %esi /* ptr to real mode */
46 pushl $0 /* no return address */
52 .long 0x1BADB002 /* magic */
53 .long 0x00000000 /* feature flags */
56 #ifdef REALMODE_LOADING