diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 21:05:19 +0200 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 14:14:59 +0100 |
commit | ab1c0cc7c96c17ea903ca6d3e42e7d2696b32b6c (patch) | |
tree | 9a72e06cab7b6dd293b16048d2928695c935ea46 /arch/um/sys-x86/user-offsets.c | |
parent | um: start switching the references to host mcontext_t to its userland type (diff) | |
download | linux-ab1c0cc7c96c17ea903ca6d3e42e7d2696b32b6c.tar.xz linux-ab1c0cc7c96c17ea903ca6d3e42e7d2696b32b6c.zip |
um: finish conversion to mcontext_t
now we don't mix host and guest signal frame layouts anymore; moreover,
we don't need host's struct sigcontext at all.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to '')
-rw-r--r-- | arch/um/sys-x86/user-offsets.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/arch/um/sys-x86/user-offsets.c b/arch/um/sys-x86/user-offsets.c index 718f0c0f0b0c..3c19c48a1d48 100644 --- a/arch/um/sys-x86/user-offsets.c +++ b/arch/um/sys-x86/user-offsets.c @@ -14,15 +14,8 @@ #define DEFINE_LONGS(sym, val) \ asm volatile("\n->" #sym " %0 " #val : : "i" (val/sizeof(unsigned long))) -#define OFFSET(sym, str, mem) \ - DEFINE(sym, offsetof(struct str, mem)); - void foo(void) { - OFFSET(HOST_SC_TRAPNO, sigcontext, trapno); - OFFSET(HOST_SC_ERR, sigcontext, err); - OFFSET(HOST_SC_CR2, sigcontext, cr2); - #ifdef __i386__ DEFINE_LONGS(HOST_FP_SIZE, sizeof(struct user_fpregs_struct)); DEFINE_LONGS(HOST_FPX_SIZE, sizeof(struct user_fpxregs_struct)); |