mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-12 16:19:53 +00:00
um: take userland definition of barrier() to user.h
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
dd768c56da
commit
05c46db4d7
@ -8,9 +8,6 @@
|
|||||||
|
|
||||||
#include <signal.h>
|
#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 sig_handler(int sig, struct sigcontext *sc);
|
||||||
extern void alarm_handler(int sig, struct sigcontext *sc);
|
extern void alarm_handler(int sig, struct sigcontext *sc);
|
||||||
|
|
||||||
|
@ -40,4 +40,7 @@ extern int in_aton(char *str);
|
|||||||
extern size_t strlcpy(char *, const char *, size_t);
|
extern size_t strlcpy(char *, const char *, size_t);
|
||||||
extern size_t strlcat(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
|
#endif
|
||||||
|
@ -16,9 +16,6 @@
|
|||||||
#include "sysdep/barrier.h"
|
#include "sysdep/barrier.h"
|
||||||
#include "sysdep/sigcontext.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 *) = {
|
void (*sig_info[NSIG])(int, struct uml_pt_regs *) = {
|
||||||
[SIGTRAP] = relay_signal,
|
[SIGTRAP] = relay_signal,
|
||||||
[SIGFPE] = relay_signal,
|
[SIGFPE] = relay_signal,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user