[PATCH v2 1/4] dbghelp: Avoid using inline assembly in do_x86cpuid().
Alexandre Julliard
julliard at winehq.org
Mon Nov 26 06:17:25 CST 2018
Zebediah Figura <z.figura12 at gmail.com> writes:
> +__ASM_GLOBAL_FUNC( do_x86cpuid,
> + "pushl %esi\n\t"
> + "pushl %ebx\n\t"
> + "movl 4(%esp),%eax\n\t"
> + "movl 8(%esp),%esi\n\t"
> + "cpuid\n\t"
> + "movl %eax,(%esi)\n\t"
> + "movl %ebx,4(%esi)\n\t"
> + "movl %ecx,8(%esi)\n\t"
> + "movl %edx,12(%esi)\n\t"
> + "popl %ebx\n\t"
> + "popl %esi\n\t"
> + "ret" );
This cannot possibly work, the stack offsets are wrong.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list