ReactOS 0.4.16-dev-250-g3ecd236
uefildr.h File Reference
#include <freeldr.h>
#include <Uefi.h>
#include <DevicePath.h>
#include <LoadedImage.h>
#include <GraphicsOutput.h>
#include <UgaDraw.h>
#include <BlockIo.h>
#include <Acpi.h>
#include <GlobalVariable.h>
#include <debug.h>
#include <machuefi.h>
Include dependency graph for uefildr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _REACTOS_INTERNAL_BGCONTEXT
 

Typedefs

typedef struct _REACTOS_INTERNAL_BGCONTEXT REACTOS_INTERNAL_BGCONTEXT
 
typedef struct _REACTOS_INTERNAL_BGCONTEXTPREACTOS_INTERNAL_BGCONTEXT
 

Functions

VOID __cdecl BootMain (IN PCCH CmdLine)
 

Typedef Documentation

◆ PREACTOS_INTERNAL_BGCONTEXT

◆ REACTOS_INTERNAL_BGCONTEXT

Function Documentation

◆ BootMain()

VOID __cdecl BootMain ( IN PCCH  CmdLine)

Definition at line 33 of file freeldr.c.

34{
35 /* Load the default settings from the command-line */
37
38 /* Debugger pre-initialization */
40
42
43 TRACE("BootMain() called.\n");
44
45#ifndef UEFIBOOT
46 /* Check if the CPU is new enough */
47 FrLdrCheckCpuCompatibility(); // FIXME: Should be done inside MachInit!
48#endif
49
50 /* UI pre-initialization */
51 if (!UiInitialize(FALSE))
52 {
53 UiMessageBoxCritical("Unable to initialize UI.");
54 goto Quit;
55 }
56
57 /* Initialize memory manager */
59 {
60 UiMessageBoxCritical("Unable to initialize memory manager.");
61 goto Quit;
62 }
63
64 /* Initialize I/O subsystem */
65 FsInit();
66
67 /* Initialize the module list */
69 {
70 UiMessageBoxCritical("Unable to initialize module list.");
71 goto Quit;
72 }
73
74 RunLoader();
75
76Quit:
77 /* If we reach this point, something went wrong before, therefore reboot */
78 Reboot();
79}
void LoadSettings(void)
Definition: settings.c:53
@ Reboot
Definition: bl.h:891
#define DebugInit(DebugString)
Definition: debug.h:120
VOID FsInit(VOID)
Definition: fs.c:646
BOOLEAN MmInitializeMemoryManager(VOID)
Definition: meminit.c:315
BOOTMGRINFO BootMgrInfo
Definition: settings.c:18
VOID UiMessageBoxCritical(_In_ PCSTR MessageText)
Definition: ui.c:372
BOOLEAN UiInitialize(BOOLEAN ShowUi)
Definition: ui.c:92
#define FALSE
Definition: types.h:117
static const WCHAR CmdLine[]
Definition: install.c:48
VOID RunLoader(VOID)
Definition: bootmgr.c:356
VOID FrLdrCheckCpuCompatibility(VOID)
Definition: macharm.c:65
VOID MachInit(IN PCCH CommandLine)
Definition: macharm.c:182
BOOLEAN PeLdrInitializeModuleList(VOID)
Definition: peloader.c:524
#define TRACE(s)
Definition: solgame.cpp:4
PCSTR DebugString
Definition: settings.h:12