[FREELDR] Fix pc98 build

This commit is contained in:
Timo Kreuzer 2025-01-23 09:16:36 +02:00
parent 2b71c738b8
commit a1a169fbe8
4 changed files with 14 additions and 5 deletions

View file

@ -61,4 +61,14 @@ VOID MachVideoGetFontsFromFirmware(PULONG RomFontPointers)
MachVtbl.VideoGetFontsFromFirmware(RomFontPointers);
}
ULONG
MachGetBootSectorLoadAddress(IN UCHAR DriveNumber)
{
#if defined(SARCH_PC98)
return Pc98GetBootSectorLoadAddress(DriveNumber);
#else
return 0x7C00;
#endif
}
/* EOF */

View file

@ -119,6 +119,7 @@
@ cdecl Relocator16Boot()
@ stdcall RtlAssert(ptr ptr long ptr)
@ cdecl StallExecutionProcessor()
@ cdecl MachGetBootSectorLoadAddress()
# Additional stuff for scsiport
@ stdcall CpDoesPortExist(ptr)

View file

@ -130,6 +130,7 @@ VOID MachInit(const char *CmdLine);
#define MachHwIdle() \
MachVtbl.HwIdle()
/* ARC FUNCTIONS **************************************************************/
TIMEINFO* ArcGetTime(VOID);
@ -139,5 +140,6 @@ PCONFIGURATION_COMPONENT_DATA MachHwDetect(_In_opt_ PCSTR Options);
VOID MachPrepareForReactOS(VOID);
VOID MachGetExtendedBIOSData(PULONG ExtendedBIOSDataArea, PULONG ExtendedBIOSDataSize);
VOID MachVideoGetFontsFromFirmware(PULONG RomFontPointers);
ULONG MachGetBootSectorLoadAddress(IN UCHAR DriveNumber);
/* EOF */

View file

@ -161,11 +161,7 @@ LoadAndBootSector(
return Status;
}
#if defined(SARCH_PC98)
LoadAddress = Pc98GetBootSectorLoadAddress(BiosDriveNumber);
#else
LoadAddress = 0x7C00;
#endif
LoadAddress = MachGetBootSectorLoadAddress(BiosDriveNumber);
/*
* Now try to load the boot sector: disk MBR (when PartitionNumber == 0),