um: finish conversion to mcontext_t
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / um / sys-x86 / stub_segv.c
blobb7450bd22e7d1dae1c2f4d4d77f4ed53a636e5b6
1 /*
2 * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3 * Licensed under the GPL
4 */
6 #include "sysdep/stub.h"
7 #include "sysdep/faultinfo.h"
8 #include "sysdep/mcontext.h"
10 void __attribute__ ((__section__ (".__syscall_stub")))
11 stub_segv_handler(int sig, siginfo_t *info, void *p)
13 struct ucontext *uc = p;
15 GET_FAULTINFO_FROM_MC(*((struct faultinfo *) STUB_DATA),
16 &uc->uc_mcontext);
17 trap_myself();