mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-24 11:45:27 +01:00
946a6428b5
Refactor ACPI_NAME_LIST as XString8Array. Create ACPI_RENAME_DEVICE and ACPI_NAME to replace ACPI_NAME_LIST. Change RAM_SLOT_INFO and MEM_STRUCTURE into class. Improve XObjArray::RemoveWithoutFreeingAtIndex. Create XStringArray::ExtractFromPos. Move CheckFatalError and CheckError to BasicIO.
66 lines
935 B
C++
66 lines
935 B
C++
/*
|
|
* BasicIO.cpp
|
|
*
|
|
* Created on: 28 Mar 2020
|
|
*
|
|
*/
|
|
|
|
#include <Platform.h> // Only use angled for Platform, else, xcode project won't compile
|
|
#include <Efi.h>
|
|
|
|
#include <stdio.h>
|
|
#include "../../rEFIt_UEFI/Platform/BasicIO.h"
|
|
////#include "EfiExternals.h"
|
|
//
|
|
//extern "C" {
|
|
//#include "Library/UefiBootServicesTableLib.h"
|
|
//}
|
|
|
|
|
|
//
|
|
// Keyboard input
|
|
//
|
|
|
|
BOOLEAN ReadAllKeyStrokes(void)
|
|
{
|
|
panic("not yet");
|
|
}
|
|
|
|
|
|
void PauseForKey(const wchar_t* msg)
|
|
{
|
|
printf("%ls", msg);
|
|
getchar();
|
|
}
|
|
|
|
// Jief, TODO : not sure of the difference between this and PauseForKey. Looks like none. Can it be removed ?
|
|
|
|
void
|
|
WaitForKeyPress(
|
|
CHAR16 *Message
|
|
)
|
|
{
|
|
panic("not yet");
|
|
}
|
|
|
|
|
|
void EndlessIdleLoop(void)
|
|
{
|
|
panic("not yet");
|
|
}
|
|
|
|
|
|
BOOLEAN CheckFatalError(IN EFI_STATUS Status, IN CONST CHAR16 *where)
|
|
{
|
|
panic("not yet");
|
|
}
|
|
|
|
BOOLEAN CheckError(IN EFI_STATUS Status, IN CONST CHAR16 *where)
|
|
{
|
|
panic("not yet");
|
|
}
|
|
|
|
|
|
|
|
|