Commit 5e3cf758 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Set the initial process context on ARM.

parent 9e093936
......@@ -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:
......
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