ReactOS  0.4.12-dev-918-g6c6e7b8
main.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Boot Loader
3  * LICENSE: BSD - See COPYING.ARM in the top level directory
4  * FILE: boot/armllb/main.c
5  * PURPOSE: Main LLB Code
6  * PROGRAMMERS: ReactOS Portable Systems Group
7  */
8 
9 #include "precomp.h"
10 
11 VOID
13  IN ULONG BoardInfo,
14  IN PATAG Arguments)
15 {
16  /* Make sure we are booting on the correct kind of machine */
17  if (BoardInfo != LlbHwGetBoardType()) while (TRUE);
18 
19  /* Initialize hardware components */
21 
22  /* Either QEMU or U-Boot itself should send this information */
23  LlbEnvParseArguments(Arguments);
24 
25  /* Clean up the screen */
27 
28  /* Print header */
29  printf("\nReactOS ARM Low-Level Boot Loader [" __DATE__ " "__TIME__ "]\n");
30 
31  /* Boot the OS Loader */
32  LlbBoot();
33  while (TRUE);
34 }
35 
36 /* EOF */
VOID NTAPI LlbEnvParseArguments(IN PATAG Arguments)
Definition: envir.c:22
#define IN
Definition: typedefs.h:38
#define TRUE
Definition: types.h:120
VOID LlbStartup(IN ULONG Reserved, IN ULONG BoardInfo, IN PATAG Arguments)
Definition: main.c:12
VOID NTAPI LlbBoot(VOID)
Definition: loader.c:163
VOID NTAPI LlbHwInitialize(VOID)
Definition: hwinit.c:13
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
VOID NTAPI LlbVideoClearScreen(IN BOOLEAN OsLoader)
Definition: video.c:310
unsigned int ULONG
Definition: retypes.h:1
Definition: envir.h:44
ULONG NTAPI LlbHwGetBoardType(VOID)
Definition: hwinfo.c:13
#define printf
Definition: config.h:203