Andrew Chew | 30 Apr 00:36

Latest SVN checkin to cpu.c broke MSVC build

Here's the errors that I'm seeing:

Compiling...
cpu.c
..\..\..\lib\cpu.c(93) : error C2414: illegal number of operands
..\..\..\lib\cpu.c(93) : error C2400: inline assembler syntax error in 
'first operand'; found '*'
..\..\..\lib\cpu.c(94) : error C2400: inline assembler syntax error in 
'opcode'; found '*'
..\..\..\lib\cpu.c(94) : warning C4405: 'mov' : identifier is reserved word
..\..\..\lib\cpu.c(124) : warning C4013: 'oc_cpuid_detect_helper' 
undefined; assuming extern returning int

Patch to fix this is attached.  Can someone check it over, though?  I 
really have no clue how the syntax for the different addressing modes in 
assembly look like, so please double-check what I did to those mov 
instructions.
Index: cpu.c
===================================================================
--- cpu.c	(revision 14814)
+++ cpu.c	(working copy)
@@ -90,8 +90,8 @@
     pushfd
     pop eax
     popfd
-    mov *_eax,eax
-    mov *_ebx,ebx
+    mov [_eax],eax
(Continue reading)


Gmane