ReactOS 0.4.15-dev-8207-gd73a838
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{
45 /* Load the default settings from the command-line */
47
48 /* Debugger pre-initialization */
50
52
53 TRACE("BootMain() called.\n");
54
55#ifndef UEFIBOOT
56 /* Check if the CPU is new enough */
57 FrLdrCheckCpuCompatibility(); // FIXME: Should be done inside MachInit!
58#endif
59
60 /* UI pre-initialization */
61 if (!UiInitialize(FALSE))
62 {
63 UiMessageBoxCritical("Unable to initialize UI.");
64 goto Quit;
65 }
66
67 /* Initialize memory manager */
69 {
70 UiMessageBoxCritical("Unable to initialize memory manager.");
71 goto Quit;
72 }
73
74 /* Initialize I/O subsystem */
75 FsInit();
76
77 RunLoader();
78
79Quit:
80 /* If we reach this point, something went wrong before, therefore reboot */
81 Reboot();
82}
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:432
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
#define TRACE(s)
Definition: solgame.cpp:4
PCSTR DebugString
Definition: settings.h:12