62{
69
70
72
73
75
77
78
82
83 if (BiosFileName ==
NULL)
84 {
86 }
87 else if (BiosFileName[0] != '\0')
88 {
90
92 DPRINT1(
"BIOS file '%s' loading %s at address 0x%08x; GetLastError() = %u\n",
94 }
95 else
96 {
97
99 }
100
101
103
104
105 if (RomFiles)
106 {
107 RomFile = RomFiles;
108 while (*RomFile)
109 {
111 RomFileName[
ARRAYSIZE(RomFileName)-1] =
'\0';
112
116
118 RomAddress <<= 4;
119 if (RomAddress == 0) goto Skip;
120
122 DPRINT1(
"ROM file '%s' loading %s at address 0x%08x; GetLastError() = %u\n",
123 RomFileName, Success2 ?
"succeeded" :
"failed", RomAddress,
GetLastError());
124
125Skip:
126 RomFile +=
strlen(RomFile) + 1;
127 }
128 }
129
130
131
132
133
134
135
136
137
138
139
140
141
142
144 {
145 wprintf(
L"FATAL: Failed to initialize the UMA manager.\n");
147 }
148
150}
UINT32 strtoul(const char *String, char **Terminator, UINT32 Base)
ACPI_SIZE strlen(const char *String)
char * strncpy(char *DstString, const char *SrcString, ACPI_SIZE Count)
char * strchr(const char *String, int ch)
BOOLEAN Bios32Initialize(VOID)
VOID WINAPI BiosEquipmentService(LPWORD Stack)
VOID WINAPI BiosGetMemorySize(LPWORD Stack)
struct BIOS_DATA_AREA * PBIOS_DATA_AREA
struct _BIOS_CONFIG_TABLE * PBIOS_CONFIG_TABLE
VOID RegisterBop(BYTE BopCode, EMULATOR_BOP_PROC BopHandler)
#define SEG_OFF_TO_PTR(seg, off)
BOOLEAN LoadBios(IN PCSTR BiosFileName, OUT PVOID *BiosLocation OPTIONAL, OUT PULONG BiosSize OPTIONAL)
BOOLEAN LoadRom(IN PCSTR RomFileName, IN PVOID RomLocation, OUT PULONG RomSize OPTIONAL)
VOID WINAPI WinNtVdmBiosReset(LPWORD Stack)
BOOLEAN UmaMgrInitialize(VOID)
DWORD WINAPI GetLastError(void)