hwf-x86: use edi for passing value to ebx for i386 cpuid
authorJussi Kivilinna <jussi.kivilinna@iki.fi>
Fri, 8 May 2015 15:07:51 +0000 (18:07 +0300)
committerJussi Kivilinna <jussi.kivilinna@iki.fi>
Thu, 14 May 2015 06:28:33 +0000 (09:28 +0300)
commitbac42c68b069f17abcca810a21439c7233815747
treeeb1379b4582447ca0e77e9bcf5db39c760927d32
parente15beb584a5ebdfc363e1ff15f87102508652d71
hwf-x86: use edi for passing value to ebx for i386 cpuid

* src/hwf-x86.c [__i386__] (get_cpuid): Use '=D' for regs[1] instead
of '=r'.
--

On Win32, %ebx can be assigned for '=r' (regs[1]). This results invalid
assembly:
pushl %ebx
movl %ebx, %ebx
cpuid
movl %ebx, %ebx
popl %ebx

So use '=D' (%esi) for regs[1] instead.

Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
src/hwf-x86.c