Skip to content

Event/TestEvent.c: TestNotify中的事件没被触发 #4

@mytbk

Description

@mytbk

在UEFI模拟器或者OVMF中都是,运行TestEvent.c在TestNotify的时候不断输出myEventNotif Wait,停不下来。

我把源代码改成下面这样,就会输出SignalEvent错误,Status为2:

VOID myEventNoify (
        IN EFI_EVENT                Event,
        IN VOID                     *Context
        )
{
    static UINTN times = 0;
    EFI_STATUS Status;

    if(times>5) {
        Status = gBS->SignalEvent(Event);
        if (EFI_ERROR(Status)) {
            Print(L"gBS->SignalEvent error %d.\n", Status);
        }
        return;
    } else {
        Print(L"myEventNotify Wait %d\n", times);
        times ++;
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions