File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed
Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -61,4 +61,14 @@ VOID MachVideoGetFontsFromFirmware(PULONG RomFontPointers)
6161 MachVtbl .VideoGetFontsFromFirmware (RomFontPointers );
6262}
6363
64+ ULONG
65+ MachGetBootSectorLoadAddress (IN UCHAR DriveNumber )
66+ {
67+ #if defined(SARCH_PC98 )
68+ return Pc98GetBootSectorLoadAddress (DriveNumber );
69+ #else
70+ return 0x7C00 ;
71+ #endif
72+ }
73+
6474/* EOF */
Original file line number Diff line number Diff line change 119119@ cdecl Relocator16Boot ()
120120@ stdcall RtlAssert (ptr ptr long ptr )
121121@ cdecl StallExecutionProcessor ()
122+ @ cdecl MachGetBootSectorLoadAddress ()
122123
123124# Additional stuff for scsiport
124125@ stdcall CpDoesPortExist (ptr )
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ VOID MachInit(const char *CmdLine);
130130#define MachHwIdle () \
131131 MachVtbl.HwIdle()
132132
133+
133134/* ARC FUNCTIONS **************************************************************/
134135
135136TIMEINFO * ArcGetTime (VOID );
@@ -139,5 +140,6 @@ PCONFIGURATION_COMPONENT_DATA MachHwDetect(_In_opt_ PCSTR Options);
139140VOID MachPrepareForReactOS (VOID );
140141VOID MachGetExtendedBIOSData (PULONG ExtendedBIOSDataArea , PULONG ExtendedBIOSDataSize );
141142VOID MachVideoGetFontsFromFirmware (PULONG RomFontPointers );
143+ ULONG MachGetBootSectorLoadAddress (IN UCHAR DriveNumber );
142144
143145/* EOF */
Original file line number Diff line number Diff line change @@ -161,11 +161,7 @@ LoadAndBootSector(
161161 return Status ;
162162 }
163163
164- #if defined(SARCH_PC98 )
165- LoadAddress = Pc98GetBootSectorLoadAddress (BiosDriveNumber );
166- #else
167- LoadAddress = 0x7C00 ;
168- #endif
164+ LoadAddress = MachGetBootSectorLoadAddress (BiosDriveNumber );
169165
170166 /*
171167 * Now try to load the boot sector: disk MBR (when PartitionNumber == 0),
You can’t perform that action at this time.
0 commit comments