summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/unistd.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-01-27 01:05:20 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-01-27 01:05:20 +0000
commit546db14ee74118296f425f3b91634fb767d67290 (patch)
tree22b613a3da8d4bf663eec5e155af01b87fdf9094 /include/asm-sh/unistd.h
parent1e25e41c4f5474e14452094492dbc169b800e4c8 (diff)
Merge with Linux 2.3.23. The new bootmem stuff has broken various
platforms. At this time I've only verified that IP22 support compiles and IP27 actually works.
Diffstat (limited to 'include/asm-sh/unistd.h')
-rw-r--r--include/asm-sh/unistd.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/include/asm-sh/unistd.h b/include/asm-sh/unistd.h
index aeb6d8715..c416fda37 100644
--- a/include/asm-sh/unistd.h
+++ b/include/asm-sh/unistd.h
@@ -222,7 +222,8 @@ type name(void) \
register long __sc0 __asm__ ("r0") = __NR_##name; \
__asm__ __volatile__ ("trapa #0" \
: "=z" (__sc0) \
- : "0" (__sc0)); \
+ : "0" (__sc0) \
+ : "memory" ); \
__syscall_return(type,__sc0); \
}
@@ -233,7 +234,8 @@ register long __sc0 __asm__ ("r0") = __NR_##name; \
register long __sc4 __asm__ ("r4") = (long) arg1; \
__asm__ __volatile__ ("trapa #0" \
: "=z" (__sc0) \
- : "0" (__sc0), "r" (__sc4)); \
+ : "0" (__sc0), "r" (__sc4) \
+ : "memory"); \
__syscall_return(type,__sc0); \
}
@@ -245,7 +247,8 @@ register long __sc4 __asm__ ("r4") = (long) arg1; \
register long __sc5 __asm__ ("r5") = (long) arg2; \
__asm__ __volatile__ ("trapa #0" \
: "=z" (__sc0) \
- : "0" (__sc0), "r" (__sc4), "r" (__sc5)); \
+ : "0" (__sc0), "r" (__sc4), "r" (__sc5) \
+ : "memory"); \
__syscall_return(type,__sc0); \
}
@@ -258,7 +261,8 @@ register long __sc5 __asm__ ("r5") = (long) arg2; \
register long __sc6 __asm__ ("r6") = (long) arg3; \
__asm__ __volatile__ ("trapa #0" \
: "=z" (__sc0) \
- : "0" (__sc0), "r" (__sc4), "r" (__sc5), "r" (__sc6)); \
+ : "0" (__sc0), "r" (__sc4), "r" (__sc5), "r" (__sc6) \
+ : "memory"); \
__syscall_return(type,__sc0); \
}
@@ -273,7 +277,8 @@ register long __sc6 __asm__ ("r7") = (long) arg4; \
__asm__ __volatile__ ("trapa #0" \
: "=z" (__sc0) \
: "0" (__sc0), "r" (__sc4), "r" (__sc5), "r" (__sc6), \
- "r" (__sc7)); \
+ "r" (__sc7) \
+ : "memory" ); \
__syscall_return(type,__sc0); \
}