Common/PageFaultHandler: Support for unwind exceptions

Needed for UWP.
This commit is contained in:
Connor McLaughlin
2021-07-10 18:01:17 +10:00
parent 6251894d3c
commit 0f911e9dbf
2 changed files with 168 additions and 17 deletions

View File

@ -8,10 +8,12 @@ enum class HandlerResult
ExecuteNextHandler,
};
using Callback = HandlerResult(*)(void* exception_pc, void* fault_address, bool is_write);
using Callback = HandlerResult (*)(void* exception_pc, void* fault_address, bool is_write);
using Handle = void*;
bool InstallHandler(void* owner, Callback callback);
bool RemoveHandler(void* owner);
u32 GetHandlerCodeSize();
bool InstallHandler(const void* owner, void* start_pc, u32 code_size, Callback callback);
bool RemoveHandler(const void* owner);
} // namespace Common::PageFaultHandler