mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 15:44:04 +02:00
Ring3: Fixed bug in Ring3LocateHandleBuffer(),
added SysCallNames.
This commit is contained in:
parent
3055d657eb
commit
c5925f6508
@ -594,7 +594,8 @@ Ring3LocateHandleBuffer (
|
|||||||
Buffer
|
Buffer
|
||||||
);
|
);
|
||||||
|
|
||||||
if ((NumberHandles != NULL) && (*NumberHandles != 0) && (Buffer != NULL) && (*Buffer != NULL)) {
|
if ((!EFI_ERROR (StatusBS)) && (NumberHandles != NULL) && (*NumberHandles != 0)
|
||||||
|
&& (Buffer != NULL) && (*Buffer != NULL)) {
|
||||||
PoolSize = *NumberHandles * sizeof (EFI_HANDLE *);
|
PoolSize = *NumberHandles * sizeof (EFI_HANDLE *);
|
||||||
|
|
||||||
Status = CoreAllocatePool (EfiRing3MemoryType, PoolSize, &Pool);
|
Status = CoreAllocatePool (EfiRing3MemoryType, PoolSize, &Pool);
|
||||||
|
@ -18,6 +18,44 @@ typedef struct {
|
|||||||
|
|
||||||
UINTN mRing3InterfacePointer = 0;
|
UINTN mRing3InterfacePointer = 0;
|
||||||
|
|
||||||
|
CHAR8 *SysCallNames[] = {
|
||||||
|
//
|
||||||
|
// BootServices
|
||||||
|
//
|
||||||
|
"SysCallReturnToCore", // Must always be zero for CoreBootServices.nasm.
|
||||||
|
"SysCallLocateProtocol",
|
||||||
|
"SysCallOpenProtocol",
|
||||||
|
"SysCallInstallMultipleProtocolInterfaces",
|
||||||
|
"SysCallCloseProtocol",
|
||||||
|
"SysCallHandleProtocol",
|
||||||
|
"SysCallAllocatePages",
|
||||||
|
"SysCallFreePages",
|
||||||
|
"SysCallRaiseTpl",
|
||||||
|
"SysCallRestoreTpl",
|
||||||
|
"SysCallLocateHandleBuffer",
|
||||||
|
"SysCallCalculateCrc32",
|
||||||
|
//
|
||||||
|
// RuntimeServices
|
||||||
|
//
|
||||||
|
"SysCallGetVariable",
|
||||||
|
//
|
||||||
|
// Protocols
|
||||||
|
//
|
||||||
|
"SysCallBlockIoReset",
|
||||||
|
"SysCallBlockIoRead",
|
||||||
|
"SysCallBlockIoWrite",
|
||||||
|
"SysCallBlockIoFlush",
|
||||||
|
"SysCallDiskIoRead",
|
||||||
|
"SysCallDiskIoWrite",
|
||||||
|
"SysCallUnicodeStriColl",
|
||||||
|
"SysCallUnicodeMetaiMatch",
|
||||||
|
"SysCallUnicodeStrLwr",
|
||||||
|
"SysCallUnicodeStrUpr",
|
||||||
|
"SysCallUnicodeFatToStr",
|
||||||
|
"SysCallUnicodeStrToFat",
|
||||||
|
"SysCallMax"
|
||||||
|
};
|
||||||
|
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
CallInstallMultipleProtocolInterfaces (
|
CallInstallMultipleProtocolInterfaces (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user