Added UserEvent functions into UEFI in userspace

Signed-off-by: Pavel Naberezhnev <pavelnaberezhnev@gmail.com>
This commit is contained in:
Pavel Naberezhnev 2025-07-25 16:24:09 +03:00 committed by vit9696
parent e1d7b9b418
commit 0d19bcd7b3
2 changed files with 13 additions and 4 deletions

View File

@ -4,18 +4,27 @@
**/
#include <UserBootServices.h>
#include <UserEvent.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
EFI_BOOT_SERVICES mBootServices = {
.RaiseTPL = DummyRaiseTPL,
.RestoreTPL = DummyRestoreTPL,
.LocateProtocol = DummyLocateProtocol,
.AllocatePages = DummyAllocatePages,
.InstallConfigurationTable = DummyInstallConfigurationTable,
.CalculateCrc32 = DummyCalculateCrc32
.CalculateCrc32 = DummyCalculateCrc32,
.CreateEventEx = UserCreateEventEx,
.CreateEvent = UserCreateEvent,
.CloseEvent = UserCloseEvent,
.CheckEvent = UserCheckEvent,
.WaitForEvent = UserWaitForEvent,
.SignalEvent = UserSignalEvent,
.SetTimer = UserSetTimer,
.RaiseTPL = UserRaiseTPL,
.RestoreTPL = UserRestoreTPL
};
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL mConOut = {

View File

@ -182,7 +182,7 @@ ifneq ($(STANDALONE),1)
#
# Customised/Simplified implementations at userspace level.
#
OBJS += UserBaseMemoryLib.o UserBootServices.o UserGlobalVar.o UserMath.o UserMisc.o UserPcd.o UserUnicodeCollation.o UserOcDummy.o
OBJS += UserBaseMemoryLib.o UserBootServices.o UserGlobalVar.o UserMath.o UserMisc.o UserPcd.o UserUnicodeCollation.o UserOcDummy.o UserEvent.o
#
# BaseOverflowLib targets.
#