mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +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);
|
MachVtbl.VideoGetFontsFromFirmware(RomFontPointers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ULONG
|
||||||
|
MachGetBootSectorLoadAddress(IN UCHAR DriveNumber)
|
||||||
|
{
|
||||||
|
#if defined(SARCH_PC98)
|
||||||
|
return Pc98GetBootSectorLoadAddress(DriveNumber);
|
||||||
|
#else
|
||||||
|
return 0x7C00;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -119,6 +119,7 @@
|
||||||
@ cdecl Relocator16Boot()
|
@ cdecl Relocator16Boot()
|
||||||
@ stdcall RtlAssert(ptr ptr long ptr)
|
@ stdcall RtlAssert(ptr ptr long ptr)
|
||||||
@ cdecl StallExecutionProcessor()
|
@ cdecl StallExecutionProcessor()
|
||||||
|
@ cdecl MachGetBootSectorLoadAddress()
|
||||||
|
|
||||||
# Additional stuff for scsiport
|
# Additional stuff for scsiport
|
||||||
@ stdcall CpDoesPortExist(ptr)
|
@ stdcall CpDoesPortExist(ptr)
|
||||||
|
|
|
@ -130,6 +130,7 @@ VOID MachInit(const char *CmdLine);
|
||||||
#define MachHwIdle() \
|
#define MachHwIdle() \
|
||||||
MachVtbl.HwIdle()
|
MachVtbl.HwIdle()
|
||||||
|
|
||||||
|
|
||||||
/* ARC FUNCTIONS **************************************************************/
|
/* ARC FUNCTIONS **************************************************************/
|
||||||
|
|
||||||
TIMEINFO* ArcGetTime(VOID);
|
TIMEINFO* ArcGetTime(VOID);
|
||||||
|
@ -139,5 +140,6 @@ PCONFIGURATION_COMPONENT_DATA MachHwDetect(_In_opt_ PCSTR Options);
|
||||||
VOID MachPrepareForReactOS(VOID);
|
VOID MachPrepareForReactOS(VOID);
|
||||||
VOID MachGetExtendedBIOSData(PULONG ExtendedBIOSDataArea, PULONG ExtendedBIOSDataSize);
|
VOID MachGetExtendedBIOSData(PULONG ExtendedBIOSDataArea, PULONG ExtendedBIOSDataSize);
|
||||||
VOID MachVideoGetFontsFromFirmware(PULONG RomFontPointers);
|
VOID MachVideoGetFontsFromFirmware(PULONG RomFontPointers);
|
||||||
|
ULONG MachGetBootSectorLoadAddress(IN UCHAR DriveNumber);
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -161,11 +161,7 @@ LoadAndBootSector(
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(SARCH_PC98)
|
LoadAddress = MachGetBootSectorLoadAddress(BiosDriveNumber);
|
||||||
LoadAddress = Pc98GetBootSectorLoadAddress(BiosDriveNumber);
|
|
||||||
#else
|
|
||||||
LoadAddress = 0x7C00;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now try to load the boot sector: disk MBR (when PartitionNumber == 0),
|
* Now try to load the boot sector: disk MBR (when PartitionNumber == 0),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue