reactos/boot/freeldr/freeldr/arch/uefi/stubs.c
Justin Miller ccef43f3b0
[FREELDR] Implement the memory managment functions for UEFI (#5174)
CORE-11954

- EFI binaries have a different subsystem in the PE header;
- ENVIRON: Make sure INTN and UINTN are 64bit for 64bit platforms;
- Handle UEFI Memory maps and translate it for freeldr;
- Add FAILED_TO_EXIT_BOOTSERVICES Freeldr BSoD code.
2023-04-03 17:33:20 +02:00

114 lines
1.5 KiB
C

/*
* PROJECT: FreeLoader UEFI Support
* LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
* PURPOSE: Function stubs
* COPYRIGHT: Copyright 2022 Justin Miller <justinmiller100@gmail.com>
*/
#include <uefildr.h>
#include <debug.h>
/* TODO: Handle this with custom Disk / partition setup */
UCHAR
DriveMapGetBiosDriveNumber(PCSTR DeviceName)
{
return 0;
}
VOID
StallExecutionProcessor(ULONG Microseconds)
{
}
VOID
NTAPI
KeStallExecutionProcessor(ULONG Microseconds)
{
StallExecutionProcessor(Microseconds);
}
VOID
UefiVideoGetFontsFromFirmware(PULONG RomFontPointers)
{
}
VOID
UefiVideoSync(VOID)
{
}
VOID
UefiGetExtendedBIOSData(PULONG ExtendedBIOSDataArea,
PULONG ExtendedBIOSDataSize)
{
}
UCHAR
UefiGetFloppyCount(VOID)
{
return 0;
}
BOOLEAN
UefiDiskReadLogicalSectors(IN UCHAR DriveNumber,
IN ULONGLONG SectorNumber,
IN ULONG SectorCount,
OUT PVOID Buffer)
{
return 0;
}
BOOLEAN
UefiDiskGetDriveGeometry(UCHAR DriveNumber,
PGEOMETRY Geometry)
{
return 0;
}
ULONG
UefiDiskGetCacheableBlockCount(UCHAR DriveNumber)
{
return 0;
}
BOOLEAN
UefiInitializeBootDevices(VOID)
{
return 0;
}
PCONFIGURATION_COMPONENT_DATA
UefiHwDetect(VOID)
{
return 0;
}
VOID
UefiPcBeep(VOID)
{
/* Not possible on UEFI, for now */
}
BOOLEAN
UefiConsKbHit(VOID)
{
return FALSE;
}
int
UefiConsGetCh(void)
{
return 0;
}
VOID
UefiHwIdle(VOID)
{
}