ReactOS 0.4.15-dev-7958-gcd0bb1a
freeldr.c File Reference
#include <freeldr.h>
#include <debug.h>
Include dependency graph for freeldr.c:

Go to the source code of this file.

Macros

#define TOSTRING_(X)   #X
 
#define TOSTRING(X)   TOSTRING_(X)
 

Functions

 DBG_DEFAULT_CHANNEL (WARNING)
 
VOID __cdecl BootMain (IN PCCH CmdLine)
 
int __cdecl wctomb (char *mbchar, wchar_t wchar)
 
int __cdecl mbtowc (wchar_t *wchar, const char *mbchar, size_t count)
 
int __cdecl iswctype (wint_t wc, wctype_t wctypeFlags)
 
double pow (double x, double y)
 
double log (double x)
 
double log10 (double x)
 

Variables

const PCSTR FrLdrVersionString
 
CCHAR FrLdrBootPath [MAX_PATH] = ""
 

Macro Definition Documentation

◆ TOSTRING

#define TOSTRING (   X)    TOSTRING_(X)

Definition at line 30 of file freeldr.c.

◆ TOSTRING_

#define TOSTRING_ (   X)    #X

Definition at line 29 of file freeldr.c.

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(_In_ PCSTR MessageText)
Definition: ui.c:372
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:371
VOID FrLdrCheckCpuCompatibility(VOID)
Definition: macharm.c:65
VOID MachInit(IN PCCH CommandLine)
Definition: macharm.c:182
#define TRACE(s)
Definition: solgame.cpp:4

Referenced by ArmInit(), and RealEntryPoint().

◆ DBG_DEFAULT_CHANNEL()

DBG_DEFAULT_CHANNEL ( WARNING  )

◆ iswctype()

int __cdecl iswctype ( wint_t  wc,
wctype_t  wctypeFlags 
)

Definition at line 99 of file freeldr.c.

100{
101 return _isctype((char)wc, wctypeFlags);
102}
_Check_return_ _CRTIMP int __cdecl _isctype(_In_ int _C, _In_ int _Type)

Referenced by _wcstoi64_l(), _wcstoui64_l(), _wtoi64_l(), _wtol(), iswalnum(), iswalpha(), iswblank(), iswcntrl(), iswdigit(), iswgraph(), iswlower(), iswprint(), iswpunct(), iswspace(), iswupper(), iswxdigit(), rangematch(), towlower(), towupper(), wcstol(), and wcstoul().

◆ log()

double log ( double  x)

Definition at line 118 of file freeldr.c.

119{
120 __debugbreak();
121 return 0.0;
122}
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698

◆ log10()

◆ mbtowc()

int __cdecl mbtowc ( wchar_t wchar,
const char mbchar,
size_t  count 
)

Definition at line 92 of file freeldr.c.

93{
94 *wchar = (wchar_t)*mbchar;
95 return 1;
96}
#define wchar_t
Definition: wchar.h:102

◆ pow()

◆ wctomb()

int __cdecl wctomb ( char mbchar,
wchar_t  wchar 
)

Definition at line 86 of file freeldr.c.

87{
88 *mbchar = (char)wchar;
89 return 1;
90}
unsigned char
Definition: typeof.h:29

Variable Documentation

◆ FrLdrBootPath

◆ FrLdrVersionString

const PCSTR FrLdrVersionString
Initial value:
=
#define TOSTRING(X)
Definition: freeldr.c:30
#define FREELOADER_MINOR_VERSION
Definition: ver.h:36
#define FREELOADER_MAJOR_VERSION
Definition: ver.h:35

Definition at line 32 of file freeldr.c.

Referenced by TuiDrawBackdrop().