projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s390: add block after label
[urcu.git]
/
urcu
/
uatomic_arch_s390.h
diff --git
a/urcu/uatomic_arch_s390.h
b/urcu/uatomic_arch_s390.h
index 6b4e17eb78ad7cda400a0cae63e24f863502ea89..b67259ec082c7d26ac947ec6087c5f98e12963a4 100644
(file)
--- a/
urcu/uatomic_arch_s390.h
+++ b/
urcu/uatomic_arch_s390.h
@@
-52,6
+52,7
@@
unsigned long _uatomic_exchange(volatile void *addr, unsigned long val, int len)
{
switch (len) {
case 4:
{
switch (len) {
case 4:
+ {
unsigned int old_val;
__asm__ __volatile__(
unsigned int old_val;
__asm__ __volatile__(
@@
-60,8
+61,10
@@
unsigned long _uatomic_exchange(volatile void *addr, unsigned long val, int len)
: "=&r"(old_val), "=m" (*addr)
: "r"(val), "m" (*addr)
: "memory", "cc");
: "=&r"(old_val), "=m" (*addr)
: "r"(val), "m" (*addr)
: "memory", "cc");
+ }
#if (BITS_PER_LONG == 64)
case 8:
#if (BITS_PER_LONG == 64)
case 8:
+ {
unsigned long old_val;
__asm__ __volatile__(
unsigned long old_val;
__asm__ __volatile__(
@@
-70,6
+73,7
@@
unsigned long _uatomic_exchange(volatile void *addr, unsigned long val, int len)
: "=&r"(old_val), "=m" (*addr)
: "r"(val), "m" (*addr)
: "memory", "cc");
: "=&r"(old_val), "=m" (*addr)
: "r"(val), "m" (*addr)
: "memory", "cc");
+ }
#endif
default:
__asm__ __volatile__(".long 0xd00d00");
#endif
default:
__asm__ __volatile__(".long 0xd00d00");
@@
-90,6
+94,7
@@
unsigned long _uatomic_cmpxchg(void *addr, unsigned long old,
{
switch (len) {
case 4:
{
switch (len) {
case 4:
+ {
unsigned int old_val = (unsigned int)old;
__asm__ __volatile__(
unsigned int old_val = (unsigned int)old;
__asm__ __volatile__(
@@
-98,6
+103,7
@@
unsigned long _uatomic_cmpxchg(void *addr, unsigned long old,
: "r"(new)
: "memory", "cc");
return old_val;
: "r"(new)
: "memory", "cc");
return old_val;
+ }
#if (BITS_PER_LONG == 64)
case 8:
__asm__ __volatile__(
#if (BITS_PER_LONG == 64)
case 8:
__asm__ __volatile__(
This page took
0.022435 seconds
and
4
git commands to generate.