diff options
author | Richard Weinberger <richard@nod.at> | 2015-05-12 01:17:28 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-05-31 18:32:36 +0300 |
commit | f8d65d27e677da0ce33de570e3068308a77ed2b1 (patch) | |
tree | da725dd9a167adf8bfaaab016e5ce533ae2c4161 /arch/x86/um/asm/processor.h | |
parent | 1d04c8d77934d9406cc8219d97be2f0188f502d2 (diff) | |
download | linux-f8d65d27e677da0ce33de570e3068308a77ed2b1.tar.xz |
um: Rework uaccess code
Rework UML's uaccess code to reuse as much as possible
from asm-generic/uaccess.c.
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um/asm/processor.h')
-rw-r--r-- | arch/x86/um/asm/processor.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/um/asm/processor.h b/arch/x86/um/asm/processor.h index 2a206d2b14ab..233ee09c1ce8 100644 --- a/arch/x86/um/asm/processor.h +++ b/arch/x86/um/asm/processor.h @@ -28,6 +28,8 @@ static inline void rep_nop(void) #define cpu_relax() rep_nop() #define cpu_relax_lowlatency() cpu_relax() +#define task_pt_regs(t) (&(t)->thread.regs) + #include <asm/processor-generic.h> #endif |