Commit 06dc0473 authored by Alexandre Julliard's avatar Alexandre Julliard

wow64: Call the thread init entry point in the CPU backend.

parent f555ee3b
......@@ -96,6 +96,7 @@ static void * (WINAPI *pBTCpuGetBopCode)(void);
static NTSTATUS (WINAPI *pBTCpuGetContext)(HANDLE,HANDLE,void *,void *);
static void (WINAPI *pBTCpuProcessInit)(void);
static NTSTATUS (WINAPI *pBTCpuSetContext)(HANDLE,HANDLE,void *,void *);
static void (WINAPI *pBTCpuThreadInit)(void);
static void (WINAPI *pBTCpuSimulate)(void);
static NTSTATUS (WINAPI *pBTCpuResetToConsistentState)( EXCEPTION_POINTERS * );
static void * (WINAPI *p__wine_get_unix_opcode)(void);
......@@ -771,6 +772,7 @@ static DWORD WINAPI process_init( RTL_RUN_ONCE *once, void *param, void **contex
GET_PTR( BTCpuGetBopCode );
GET_PTR( BTCpuGetContext );
GET_PTR( BTCpuProcessInit );
GET_PTR( BTCpuThreadInit );
GET_PTR( BTCpuResetToConsistentState );
GET_PTR( BTCpuSetContext );
GET_PTR( BTCpuSimulate );
......@@ -802,6 +804,7 @@ static void thread_init(void)
void *cpu_area_ctx;
RtlWow64GetCurrentCpuArea( NULL, &cpu_area_ctx, NULL );
if (pBTCpuThreadInit) pBTCpuThreadInit();
/* update initial context to jump to 32-bit LdrInitializeThunk (cf. 32-bit call_init_thunk) */
switch (current_machine)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment