Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mytbk opened this issue Apr 21, 2016 · 0 comments
Open

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

mytbk opened this issue Apr 21, 2016 · 0 comments

Comments

@mytbk
Copy link
Contributor

mytbk commented Apr 21, 2016

在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 ++;
    }
}
@mytbk mytbk changed the title Event/TestEvent.c: TestNotify中的事件没被出发 Event/TestEvent.c: TestNotify中的事件没被触发 Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant