mirror of
https://github.com/reactos/reactos.git
synced 2024-05-15 17:51:58 +00:00
[FREELDR] Minor code cleanup in arch/uefi files
This commit is contained in:
parent
1e409e6902
commit
f4ff0aba2f
|
@ -7,8 +7,6 @@
|
|||
|
||||
#include <uefildr.h>
|
||||
|
||||
#include <debug.h>
|
||||
|
||||
#ifndef _M_ARM
|
||||
/* TODO: Handle this with custom Disk / partition setup */
|
||||
UCHAR
|
||||
|
|
|
@ -98,7 +98,7 @@ UefiGetBootPartitionEntry(
|
|||
{
|
||||
TRACE("Boot PartitionNumber is 0\n");
|
||||
/* The OffsetToBoot is equal to the RootIdentifier */
|
||||
PartitionNum = 1;
|
||||
PartitionNum = FIRST_PARTITION;
|
||||
}
|
||||
|
||||
*BootPartition = PartitionNum;
|
||||
|
@ -395,7 +395,7 @@ UefiSetupBlockDevices(VOID)
|
|||
PcBiosDiskCount = 0;
|
||||
UefiBootRootIdentifier = 0;
|
||||
|
||||
/* 1) Setup a list of boothandles by using the LocateHandle protocol */
|
||||
/* 1) Setup a list of boot handles by using the LocateHandle protocol */
|
||||
Status = GlobalSystemTable->BootServices->LocateHandle(ByProtocol, &bioGuid, NULL, &handle_size, handles);
|
||||
handles = MmAllocateMemoryWithType(handle_size, LoaderFirmwareTemporary);
|
||||
Status = GlobalSystemTable->BootServices->LocateHandle(ByProtocol, &bioGuid, NULL, &handle_size, handles);
|
||||
|
|
|
@ -52,7 +52,7 @@ MachInit(const char *CmdLine)
|
|||
MachVtbl.HwIdle = UefiHwIdle;
|
||||
|
||||
/* Setup GOP */
|
||||
if (UefiInitalizeVideo() != EFI_SUCCESS)
|
||||
if (UefiInitializeVideo() != EFI_SUCCESS)
|
||||
{
|
||||
ERR("Failed to setup GOP\n");
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ EFI_GUID EfiGraphicsOutputProtocol = EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID;
|
|||
/* FUNCTIONS ******************************************************************/
|
||||
|
||||
EFI_STATUS
|
||||
UefiInitalizeVideo(VOID)
|
||||
UefiInitializeVideo(VOID)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_GRAPHICS_OUTPUT_PROTOCOL* gop = NULL;
|
||||
|
|
|
@ -7,24 +7,17 @@
|
|||
|
||||
#include <machine.h>
|
||||
|
||||
EFI_STATUS
|
||||
UefiMachInit(_In_ EFI_HANDLE ImageHandle,
|
||||
_In_ EFI_SYSTEM_TABLE *SystemTable);
|
||||
|
||||
VOID
|
||||
UefiConsPutChar(int Ch);
|
||||
|
||||
BOOLEAN
|
||||
UefiConsKbHit(VOID);
|
||||
|
||||
VOID
|
||||
UefiConsSetCursor(UINT32 Col, UINT32 Row);
|
||||
|
||||
int
|
||||
UefiConsGetCh(void);
|
||||
|
||||
EFI_STATUS
|
||||
UefiInitalizeVideo(VOID);
|
||||
UefiInitializeVideo(VOID);
|
||||
|
||||
VOID
|
||||
UefiVideoClearScreen(UCHAR Attr);
|
||||
|
@ -47,10 +40,6 @@ UefiVideoSetTextCursorPosition(UCHAR X, UCHAR Y);
|
|||
VOID
|
||||
UefiVideoHideShowTextCursor(BOOLEAN Show);
|
||||
|
||||
VOID
|
||||
UefiVideoOutputChar(UCHAR Char, unsigned X,
|
||||
unsigned Y, ULONG FgColor, ULONG BgColor);
|
||||
|
||||
VOID
|
||||
UefiVideoPutChar(int Ch, UCHAR Attr,
|
||||
unsigned X, unsigned Y);
|
||||
|
|
Loading…
Reference in a new issue