=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: ntdll: Set platform register x18 to TEB on ARM64.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 17 10:18:10 CDT 2015


Module: wine
Branch: master
Commit: aa139d3e86402ea98fc930d9fc78634b1c000700
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=aa139d3e86402ea98fc930d9fc78634b1c000700

Author: André Hentschel <nerv at dawncrow.de>
Date:   Tue Jun 16 22:10:17 2015 +0200

ntdll: Set platform register x18 to TEB on ARM64.

---

 dlls/ntdll/signal_arm64.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/ntdll/signal_arm64.c b/dlls/ntdll/signal_arm64.c
index f5c62d1..bd91d81 100644
--- a/dlls/ntdll/signal_arm64.c
+++ b/dlls/ntdll/signal_arm64.c
@@ -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 );
 }
 




More information about the wine-cvs mailing list