Commit e05a8697 authored by Martin Storsjö's avatar Martin Storsjö Committed by Alexandre Julliard

ntdll: Readd the missed initialization of the thread register on arm.

This was missed in d3a68e43. Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 384b0b35
......@@ -1594,6 +1594,8 @@ void DECLSPEC_HIDDEN call_init_thunk( LPTHREAD_START_ROUTINE entry, void *arg, B
struct syscall_frame *frame = thread_data->syscall_frame;
CONTEXT *ctx, context = { CONTEXT_ALL };
__asm__ __volatile__( "mcr p15, 0, %0, c13, c0, 2" : : "r" (teb) );
context.R0 = (DWORD)entry;
context.R1 = (DWORD)arg;
context.Sp = (DWORD)teb->Tib.StackBase;
......
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