Merge tag 'sound-4.2-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai...
[linux-2.6-block.git] / arch / x86 / um / stub_segv.c
CommitLineData
d67b569f 1/*
ee3d9bd4 2 * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
d67b569f
JD
3 * Licensed under the GPL
4 */
5
37185b33
AV
6#include <sysdep/stub.h>
7#include <sysdep/faultinfo.h>
8#include <sysdep/mcontext.h>
d67b569f
JD
9
10void __attribute__ ((__section__ (".__syscall_stub")))
9b25fcbd 11stub_segv_handler(int sig, siginfo_t *info, void *p)
d67b569f 12{
9b25fcbd 13 struct ucontext *uc = p;
d67b569f 14
248b74c7 15 GET_FAULTINFO_FROM_MC(*((struct faultinfo *) STUB_DATA),
50f72b57 16 &uc->uc_mcontext);
ee3d9bd4 17 trap_myself();
d67b569f 18}
ee3d9bd4 19