Skip to content

Commit

Permalink
um: take userland definition of barrier() to user.h
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
  • Loading branch information
Al Viro authored and Richard Weinberger committed Nov 2, 2011
1 parent dd768c5 commit 05c46db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions arch/um/include/shared/process.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@

#include <signal.h>

/* Copied from linux/compiler-gcc.h since we can't include it directly */
#define barrier() __asm__ __volatile__("": : :"memory")

extern void sig_handler(int sig, struct sigcontext *sc);
extern void alarm_handler(int sig, struct sigcontext *sc);

Expand Down
3 changes: 3 additions & 0 deletions arch/um/include/shared/user.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ extern int in_aton(char *str);
extern size_t strlcpy(char *, const char *, size_t);
extern size_t strlcat(char *, const char *, size_t);

/* Copied from linux/compiler-gcc.h since we can't include it directly */
#define barrier() __asm__ __volatile__("": : :"memory")

#endif
3 changes: 0 additions & 3 deletions arch/um/os-Linux/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
#include "sysdep/barrier.h"
#include "sysdep/sigcontext.h"

/* Copied from linux/compiler-gcc.h since we can't include it directly */
#define barrier() __asm__ __volatile__("": : :"memory")

void (*sig_info[NSIG])(int, struct uml_pt_regs *) = {
[SIGTRAP] = relay_signal,
[SIGFPE] = relay_signal,
Expand Down

0 comments on commit 05c46db

Please sign in to comment.