yuzu-emu
/
yuzu
Archived
1
0
Fork 0

Merge pull request #5852 from ameerj/event-fd-stub

bsd: Stub EventFd
This commit is contained in:
bunnei 2021-01-30 21:38:08 -08:00 committed by GitHub
commit 360ea64738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 1 deletions

View File

@ -416,6 +416,16 @@ void BSD::Close(Kernel::HLERequestContext& ctx) {
BuildErrnoResponse(ctx, CloseImpl(fd)); BuildErrnoResponse(ctx, CloseImpl(fd));
} }
void BSD::EventFd(Kernel::HLERequestContext& ctx) {
LOG_WARNING(Service, "(STUBBED) called");
IPC::RequestParser rp{ctx};
const s32 fd = rp.Pop<s32>();
LOG_DEBUG(Service, "called. fd={}", fd);
BuildErrnoResponse(ctx, Errno::SUCCESS);
}
template <typename Work> template <typename Work>
void BSD::ExecuteWork(Kernel::HLERequestContext& ctx, Work work) { void BSD::ExecuteWork(Kernel::HLERequestContext& ctx, Work work) {
work.Execute(this); work.Execute(this);
@ -841,7 +851,7 @@ BSD::BSD(Core::System& system_, const char* name) : ServiceFramework{system_, na
{28, nullptr, "GetResourceStatistics"}, {28, nullptr, "GetResourceStatistics"},
{29, nullptr, "RecvMMsg"}, {29, nullptr, "RecvMMsg"},
{30, nullptr, "SendMMsg"}, {30, nullptr, "SendMMsg"},
{31, nullptr, "EventFd"}, {31, &BSD::EventFd, "EventFd"},
{32, nullptr, "RegisterResourceStatisticsName"}, {32, nullptr, "RegisterResourceStatisticsName"},
{33, nullptr, "Initialize2"}, {33, nullptr, "Initialize2"},
}; };

View File

@ -136,6 +136,7 @@ private:
void SendTo(Kernel::HLERequestContext& ctx); void SendTo(Kernel::HLERequestContext& ctx);
void Write(Kernel::HLERequestContext& ctx); void Write(Kernel::HLERequestContext& ctx);
void Close(Kernel::HLERequestContext& ctx); void Close(Kernel::HLERequestContext& ctx);
void EventFd(Kernel::HLERequestContext& ctx);
template <typename Work> template <typename Work>
void ExecuteWork(Kernel::HLERequestContext& ctx, Work work); void ExecuteWork(Kernel::HLERequestContext& ctx, Work work);