spinlock: fix build with clang
[dpdk.git] / lib / librte_eal / common / include / rte_spinlock.h
index f7a245a..f79e424 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  * 
- *   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
  *   All rights reserved.
  * 
  *   Redistribution and use in source and binary forms, with or without
@@ -98,7 +98,7 @@ rte_spinlock_lock(rte_spinlock_t *sl)
                        "jz 3f\n"
                        "2:\n"
                        "pause\n"
-                       "cmp $0, %[locked]\n"
+                       "cmpl $0, %[locked]\n"
                        "jnz 2b\n"
                        "jmp 1b\n"
                        "3:\n"