Pass PageDirectoryStart and End so the memory manager

knows not to clobber it

svn path=/trunk/; revision=13480
This commit is contained in:
Gé van Geldorp 2005-02-09 23:52:27 +00:00
parent 2da2045b7f
commit 00c444e957

View file

@ -244,9 +244,14 @@ VOID RunLoader(VOID)
HINF InfHandle;
ULONG ErrorLine;
INFCONTEXT InfContext;
extern ULONG PageDirectoryStart;
extern ULONG PageDirectoryEnd;
/* Setup multiboot information structure */
LoaderBlock.Flags = MB_INFO_FLAG_BOOT_DEVICE | MB_INFO_FLAG_COMMAND_LINE | MB_INFO_FLAG_MODULES;
LoaderBlock.PageDirectoryStart = (ULONG)&PageDirectoryStart;
LoaderBlock.PageDirectoryEnd = (ULONG)&PageDirectoryEnd;
LoaderBlock.BootDevice = 0xffffffff;
LoaderBlock.CommandLine = (unsigned long)multiboot_kernel_cmdline;
LoaderBlock.ModsCount = 0;