[1/2] ntdll: Set platform register x18 to TEB on ARM64 (resend)
Alexandre Julliard
julliard at winehq.org
Tue Jun 16 06:05:22 CDT 2015
André Hentschel <nerv at dawncrow.de> writes:
> @@ -788,6 +788,17 @@ void signal_free_thread( TEB *teb )
>
>
> /**********************************************************************
> + * set_x18
> + *
> + * Win64/ARM applications expect the TEB pointer to be in the x18 platform register.
> + */
> +extern void set_x18( TEB *teb );
> +__ASM_GLOBAL_FUNC( set_x18,
> + "mov x18, x0\n\t" /* TEB -> platform register */
> + "ret" )
You don't really need a global function for this.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list