Initial guest-to-host trampoline generation

This commit is contained in:
2025-10-30 02:23:09 -06:00
parent 9367f003c5
commit 55a62a27c9
85 changed files with 1750 additions and 1807 deletions

View File

@@ -702,7 +702,7 @@ namespace msvcrt {
void WIN_ENTRY _initterm(const _PVFV *ppfn, const _PVFV* end) {
HOST_CONTEXT_GUARD();
DEBUG_LOG("_initterm(%p, %p)\n", ppfn, end);
TIB *tib = wibo::getThreadTibForHost();
auto *tib = wibo::getThreadTibForHost();
for (; ppfn < end; ppfn++) {
_PVFV func = *ppfn;
if (func) {
@@ -718,7 +718,7 @@ namespace msvcrt {
int WIN_ENTRY _initterm_e(const _PIFV *ppfn, const _PIFV *end) {
HOST_CONTEXT_GUARD();
DEBUG_LOG("_initterm_e(%p, %p)\n", ppfn, end);
TIB *tib = wibo::getThreadTibForHost();
auto *tib = wibo::getThreadTibForHost();
for (; ppfn < end; ppfn++) {
_PIFV func = *ppfn;
if (func) {