Commit aa139d3e authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

ntdll: Set platform register x18 to TEB on ARM64.

parent 97536c16
......@@ -799,6 +799,10 @@ void signal_init_thread( TEB *teb )
pthread_key_create( &teb_key, NULL );
init_done = TRUE;
}
/* Win64/ARM applications expect the TEB pointer to be in the x18 platform register. */
__asm__ __volatile__( "mov x18, %0" : : "r" (teb) );
pthread_setspecific( teb_key, teb );
}
......
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