mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 20:01:50 +00:00
[FREELDR] Fix pc98 build
This commit is contained in:
parent
2b71c738b8
commit
a1a169fbe8
4 changed files with 14 additions and 5 deletions
|
@ -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 */
|
||||
|
|
|
@ -119,6 +119,7 @@
|
|||
@ cdecl Relocator16Boot()
|
||||
@ stdcall RtlAssert(ptr ptr long ptr)
|
||||
@ cdecl StallExecutionProcessor()
|
||||
@ cdecl MachGetBootSectorLoadAddress()
|
||||
|
||||
# Additional stuff for scsiport
|
||||
@ stdcall CpDoesPortExist(ptr)
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue