提交 becbe61f 编写于 作者: V vit9696

OpenCoreUefi: Add ProvideConsoleControl quirk

上级 4ffe72a5
......@@ -2219,6 +2219,17 @@ tweaks for the onboard firmware.
\emph{Note}: While the option is not supposed to induce harm on unaffected firmwares,
its usage is not recommended when it is not required.
\item
\texttt{ProvideConsoleControl}\\
\textbf{Type}: \texttt{plist\ boolean}\\
\textbf{Default value}: \texttt{NO}\\
\textbf{Description}: macOS bootloader requires console control protocol
for text output, some firmwares miss it.
\emph{Note}: Some drivers, like AppleUiSupport, may provide equivalent functionality.
These drivers are not guaranteed to adhere to the same logic, and if a quirk is
necessary, this option is preferred.
\item
\texttt{ProvideConsoleGop}\\
\textbf{Type}: \texttt{plist\ boolean}\\
......
......@@ -57,6 +57,7 @@
OcAppleKernelLib|OcSupportPkg/Library/OcAppleKernelLib/OcAppleKernelLib.inf
OcAppleKeysLib|OcSupportPkg/Library/OcAppleKeysLib/OcAppleKeysLib.inf
OcBootManagementLib|OcSupportPkg/Library/OcBootManagementLib/OcBootManagementLib.inf
OcConsoleLib|OcSupportPkg/Library/OcConsoleLib/OcConsoleLib.inf
OcCpuLib|OcSupportPkg/Library/OcCpuLib/OcCpuLib.inf
OcCryptoLib|OcSupportPkg/Library/OcCryptoLib/OcCryptoLib.inf
OcCompressionLib|OcSupportPkg/Library/OcCompressionLib/OcCompressionLib.inf
......
......@@ -69,6 +69,7 @@
OcAppleKernelLib
OcBootManagementLib
OcConfigurationLib
OcConsoleLib
OcDataHubLib
OcDevicePathLib
OcDevicePropertyLib
......
......@@ -17,6 +17,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/PrintLib.h>
#include <Library/OcConsoleLib.h>
#include <Library/OcCpuLib.h>
#include <Library/OcMiscLib.h>
#include <Library/UefiBootServicesTableLib.h>
......@@ -200,6 +201,17 @@ OcProvideConsoleGop (
}
}
STATIC
VOID
OcProvideConsoleControl (
)
{
//
// TODO: Evolve.
//
ConfigureConsoleControl (FALSE);
}
STATIC
VOID
EFIAPI
......@@ -237,6 +249,10 @@ OcLoadUefiSupport (
OcProvideConsoleGop ();
}
if (Config->Uefi.Quirks.ProvideConsoleControl) {
OcProvideConsoleControl ();
}
if (Config->Uefi.Quirks.ReleaseUsbOwnership) {
gBS->CreateEvent (
EVT_SIGNAL_EXIT_BOOT_SERVICES,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册