3 * Copyright (C) 2008 - 2009 Timo Kreuzer (timo.kreuzer@reactor.org)
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.
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.
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.
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
;
31 PPAGE_DIRECTORY_AMD64 pPML4
;
34 /* FUNCTIONS *****************************************************************/
46 * Prepares the system for loading the Kernel.
49 * Magic - Multiboot Magic
60 FrLdrStartup(ULONG Magic
)
62 DbgPrint("ReactOS loader is unsupported! Halting.\n", KernelEntryPoint
);