ntdll: Set the initial process context on ARM.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-11-21 20:03:20 +01:00
parent 9e093936e2
commit 5e3cf758d1

View file

@ -1011,7 +1011,12 @@ void signal_init_process( CONTEXT *context, LPTHREAD_START_ROUTINE entry )
if (sigaction( SIGTRAP, &sig_act, NULL ) == -1) goto error;
#endif
/* FIXME: set the initial context */
/* set the initial context */
context->ContextFlags = CONTEXT_FULL;
context->R0 = (DWORD)kernel32_start_process;
context->R1 = (DWORD)entry;
context->Sp = (DWORD)NtCurrentTeb()->Tib.StackBase;
context->Pc = (DWORD)call_thread_entry_point;
return;
error: