Merge trunk HEAD (r46369)
[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 #define _NTSYSTEM_
20 #include <freeldr.h>
21
22 #define NDEBUG
23 #include <debug.h>
24
25 /* Page Directory and Tables for non-PAE Systems */
26 extern ULONG_PTR NextModuleBase;
27 extern ULONG_PTR KernelBase;
28 ULONG_PTR GdtBase, IdtBase, TssBase;
29 extern ROS_KERNEL_ENTRY_POINT KernelEntryPoint;
30
31 PPAGE_DIRECTORY_AMD64 pPML4;
32 PVOID pIdt, pGdt;
33
34 /* FUNCTIONS *****************************************************************/
35
36 void
37 EnableA20()
38 {
39 /* Already done */
40 }
41
42 /*++
43 * FrLdrStartup
44 * INTERNAL
45 *
46 * Prepares the system for loading the Kernel.
47 *
48 * Params:
49 * Magic - Multiboot Magic
50 *
51 * Returns:
52 * None.
53 *
54 * Remarks:
55 * None.
56 *
57 *--*/
58 VOID
59 NTAPI
60 FrLdrStartup(ULONG Magic)
61 {
62 DbgPrint("ReactOS loader is unsupported! Halting.\n", KernelEntryPoint);
63 for(;;);
64 }
65