projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
EFI: warn only for pre-1.00 system tables
[cascardo/linux.git]
/
include
/
asm-i386
/
local.h
diff --git
a/include/asm-i386/local.h
b/include/asm-i386/local.h
index
3b4998c
..
12060e2
100644
(file)
--- a/
include/asm-i386/local.h
+++ b/
include/asm-i386/local.h
@@
-17,32
+17,30
@@
static __inline__ void local_inc(local_t *v)
{
__asm__ __volatile__(
"incl %0"
{
__asm__ __volatile__(
"incl %0"
- :"=m" (v->counter)
- :"m" (v->counter));
+ :"+m" (v->counter));
}
static __inline__ void local_dec(local_t *v)
{
__asm__ __volatile__(
"decl %0"
}
static __inline__ void local_dec(local_t *v)
{
__asm__ __volatile__(
"decl %0"
- :"=m" (v->counter)
- :"m" (v->counter));
+ :"+m" (v->counter));
}
static __inline__ void local_add(long i, local_t *v)
{
__asm__ __volatile__(
"addl %1,%0"
}
static __inline__ void local_add(long i, local_t *v)
{
__asm__ __volatile__(
"addl %1,%0"
- :"
=
m" (v->counter)
- :"ir" (i)
, "m" (v->counter)
);
+ :"
+
m" (v->counter)
+ :"ir" (i));
}
static __inline__ void local_sub(long i, local_t *v)
{
__asm__ __volatile__(
"subl %1,%0"
}
static __inline__ void local_sub(long i, local_t *v)
{
__asm__ __volatile__(
"subl %1,%0"
- :"
=
m" (v->counter)
- :"ir" (i)
, "m" (v->counter)
);
+ :"
+
m" (v->counter)
+ :"ir" (i));
}
/* On x86, these are no better than the atomic variants. */
}
/* On x86, these are no better than the atomic variants. */