ReactOS 0.4.15-dev-7659-ga55345b
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 43 of file freeldr.c.

44{
46
47 /* Debugger pre-initialization */
48 DebugInit(0);
49
51
52 TRACE("BootMain() called.\n");
53
54#ifndef UEFIBOOT
55 /* Check if the CPU is new enough */
56 FrLdrCheckCpuCompatibility(); // FIXME: Should be done inside MachInit!
57#endif
58
59 /* UI pre-initialization */
60 if (!UiInitialize(FALSE))
61 {
62 UiMessageBoxCritical("Unable to initialize UI.");
63 goto Quit;
64 }
65
66 /* Initialize memory manager */
68 {
69 UiMessageBoxCritical("Unable to initialize memory manager.");
70 goto Quit;
71 }
72
73 /* Initialize I/O subsystem */
74 FsInit();
75
76 RunLoader();
77
78Quit:
79 /* If we reach this point, something went wrong before, therefore reboot */
80 Reboot();
81}
@ Reboot
Definition: bl.h:891
#define DebugInit(FrLdrSectionId)
Definition: debug.h:117
VOID FsInit(VOID)
Definition: fs.c:432
BOOLEAN MmInitializeMemoryManager(VOID)
Definition: meminit.c:315
VOID UiMessageBoxCritical(PCSTR MessageText)
Definition: ui.c:368
BOOLEAN UiInitialize(BOOLEAN ShowUi)
Definition: ui.c:92
VOID CmdLineParse(IN PCSTR CmdLine)
Definition: cmdline.c:29
#define FALSE
Definition: types.h:117
static const WCHAR CmdLine[]
Definition: install.c:48
VOID RunLoader(VOID)
Definition: bootmgr.c:303
VOID FrLdrCheckCpuCompatibility(VOID)
Definition: macharm.c:65
VOID MachInit(IN PCCH CommandLine)
Definition: macharm.c:182
#define TRACE(s)
Definition: solgame.cpp:4