* src/vm/jit/i386/asmpart.S (asm_compare_and_swap): Added ; after
authortwisti <none@none>
Fri, 9 Feb 2007 13:00:04 +0000 (13:00 +0000)
committertwisti <none@none>
Fri, 9 Feb 2007 13:00:04 +0000 (13:00 +0000)
lock, Darwin's assembler requires that.
(asm_compare_and_swap): Likewise.

src/vm/jit/i386/asmpart.S

index 24b5edb6ddad250320e96f8e1f7cdec39f9e06a2..92f75974ef7cdd67ef3d2a6a6d9870ac88bb2068 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: asmpart.S 7254 2007-01-29 21:38:54Z twisti $
+   $Id: asmpart.S 7310 2007-02-09 13:00:04Z twisti $
 
 */
 
@@ -658,7 +658,7 @@ asm_compare_and_swap:
        mov     1*4(sp),%ecx            /* load p into a register                 */
        mov     2*4(sp),%eax            /* load oldval into return register       */
        mov     3*4(sp),%edx            /* load newval into a register            */
-       lock cmpxchgl %edx,0(%ecx)
+       lock; cmpxchgl %edx,0(%ecx)
        ret
 
 
@@ -669,7 +669,7 @@ asm_compare_and_swap:
 *******************************************************************************/
 
 asm_memory_barrier:
-       lock add $0,0(sp)
+       lock; add $0,0(sp)
        ret