Fully functional guest<->host trampolines

This commit is contained in:
2025-10-31 00:45:32 -06:00
parent 55a62a27c9
commit 52cdd7c811
56 changed files with 1683 additions and 1488 deletions

View File

@@ -1,13 +1,13 @@
#include "mscoree.h"
#include "common.h"
#include "context.h"
#include "kernel32/internal.h"
#include "modules.h"
#include <cstring>
namespace mscoree {
void WIN_FUNC CorExitProcess(int exitCode) {
VOID WINAPI CorExitProcess(int exitCode) {
HOST_CONTEXT_GUARD();
DEBUG_LOG("CorExitProcess(%i)\n", exitCode);
kernel32::exitInternal(exitCode);
@@ -15,17 +15,13 @@ void WIN_FUNC CorExitProcess(int exitCode) {
} // namespace mscoree
static void *resolveByName(const char *name) {
if (strcmp(name, "CorExitProcess") == 0)
return (void *)mscoree::CorExitProcess;
return nullptr;
}
#include "mscoree_trampolines.h"
extern const wibo::ModuleStub lib_mscoree = {
(const char *[]){
"mscoree",
nullptr,
},
resolveByName,
mscoreeThunkByName,
nullptr,
};