diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 20:05:09 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 14:14:59 +0100 |
commit | 248b74c79ebb9fb55e146797a808836d90418c4b (patch) | |
tree | 2d043bee58d2d8995ca4ccedf9d00513a13297cb /arch/um/sys-x86/shared/sysdep/sigcontext_32.h | |
parent | 05c46db4d7d51af969e09f9f1adbff66ee2e84b4 (diff) |
um: start switching the references to host mcontext_t to its userland type
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/sys-x86/shared/sysdep/sigcontext_32.h')
-rw-r--r-- | arch/um/sys-x86/shared/sysdep/sigcontext_32.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/um/sys-x86/shared/sysdep/sigcontext_32.h b/arch/um/sys-x86/shared/sysdep/sigcontext_32.h index aebc2dd61f0d..548c3cdb743b 100644 --- a/arch/um/sys-x86/shared/sysdep/sigcontext_32.h +++ b/arch/um/sys-x86/shared/sysdep/sigcontext_32.h @@ -22,4 +22,11 @@ (fi).trap_no = SC_TRAPNO(sc); \ } +#define GET_FAULTINFO_FROM_MC(fi, mc) \ + { \ + (fi).cr2 = (mc)->cr2; \ + (fi).error_code = (mc)->gregs[REG_ERR]; \ + (fi).trap_no = (mc)->gregs[REG_TRAPNO]; \ + } + #endif |