[FREELDR]
[reactos.git] / reactos / boot / freeldr / freeldr / arch / amd64 / loader.c
1 /*
2 * FreeLoader
3 * Copyright (C) 2008 - 2009 Timo Kreuzer (timo.kreuzer@reactor.org)
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19 #include <freeldr.h>
20
21 #define NDEBUG
22 #include <debug.h>
23
24 /* Page Directory and Tables for non-PAE Systems */
25 extern ULONG_PTR NextModuleBase;
26 extern ULONG_PTR KernelBase;
27 ULONG_PTR GdtBase, IdtBase, TssBase;
28 extern ROS_KERNEL_ENTRY_POINT KernelEntryPoint;
29
30 PPAGE_DIRECTORY_AMD64 pPML4;
31 PVOID pIdt, pGdt;
32
33 /* FUNCTIONS *****************************************************************/
34
35 void
36 EnableA20()
37 {
38 /* Already done */
39 }
40
41 /*++
42 * FrLdrStartup
43 * INTERNAL
44 *
45 * Prepares the system for loading the Kernel.
46 *
47 * Params:
48 * Magic - Multiboot Magic
49 *
50 * Returns:
51 * None.
52 *
53 * Remarks:
54 * None.
55 *
56 *--*/
57 VOID
58 NTAPI
59 FrLdrStartup(ULONG Magic)
60 {
61 DbgPrint("ReactOS loader is unsupported! Halting.\n", KernelEntryPoint);
62 for(;;);
63 }
64