2010-02-01 18:33:24 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS Boot Loader
|
|
|
|
* LICENSE: BSD - See COPYING.ARM in the top level directory
|
|
|
|
* FILE: boot/armllb/main.c
|
|
|
|
* PURPOSE: Main LLB Code
|
|
|
|
* PROGRAMMERS: ReactOS Portable Systems Group
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "precomp.h"
|
|
|
|
|
|
|
|
VOID
|
2010-02-03 03:14:59 +00:00
|
|
|
LlbStartup(IN ULONG Reserved,
|
|
|
|
IN ULONG BoardInfo,
|
|
|
|
IN PATAG Arguments)
|
2010-02-01 18:33:24 +00:00
|
|
|
{
|
2010-02-03 03:14:59 +00:00
|
|
|
/* Make sure we are booting on the correct kind of machine */
|
|
|
|
if (BoardInfo != LlbHwGetBoardType()) while (TRUE);
|
|
|
|
|
2010-02-01 18:33:24 +00:00
|
|
|
/* Initialize hardware components */
|
|
|
|
LlbHwInitialize();
|
|
|
|
|
2010-11-23 16:44:19 +00:00
|
|
|
/* Either QEMU or U-Boot itself should send this information */
|
|
|
|
LlbEnvParseArguments(Arguments);
|
|
|
|
|
2010-02-01 18:33:24 +00:00
|
|
|
/* Clean up the screen */
|
2010-02-02 17:21:19 +00:00
|
|
|
LlbVideoClearScreen(FALSE);
|
2010-02-01 18:33:24 +00:00
|
|
|
|
|
|
|
/* Print header */
|
2010-11-23 16:44:19 +00:00
|
|
|
printf("\nReactOS ARM Low-Level Boot Loader [" __DATE__ " "__TIME__ "]\n");
|
2010-02-02 00:14:14 +00:00
|
|
|
|
|
|
|
/* Boot the OS Loader */
|
2010-02-03 23:17:16 +00:00
|
|
|
LlbBoot();
|
2010-02-01 18:33:24 +00:00
|
|
|
while (TRUE);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* EOF */
|