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.
15 #ifdef REALMODE_LOADING
24 /* We have the following problem: Our image is loaded at 0x00100000
25 * by the boot loader but we don't want to get into conflict with
26 * the AMD64 executable. Therefore we move ourself out of the way.
27 * We are linked to 0x01000000 (see ARCH-amd64/boot32/bootstrap.ld) */
32 sub $_image_start, %ecx
42 pushl %esi /* ptr to real mode */
45 pushl $0 /* no return address */
51 .long 0x1BADB002 /* magic */
52 .long 0x00000000 /* feature flags */
55 #ifdef REALMODE_LOADING