Commit | Line | Data |
---|---|---|
d67b569f | 1 | /* |
ee3d9bd4 | 2 | * Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
d67b569f JD |
3 | * Licensed under the GPL |
4 | */ | |
5 | ||
17d46971 | 6 | #include "sysdep/stub.h" |
d67b569f | 7 | #include "sysdep/sigcontext.h" |
d67b569f JD |
8 | |
9 | void __attribute__ ((__section__ (".__syscall_stub"))) | |
10 | stub_segv_handler(int sig) | |
11 | { | |
12 | struct sigcontext *sc = (struct sigcontext *) (&sig + 1); | |
13 | ||
54ae36f2 | 14 | GET_FAULTINFO_FROM_SC(*((struct faultinfo *) STUB_DATA), sc); |
d67b569f | 15 | |
ee3d9bd4 | 16 | trap_myself(); |
d67b569f | 17 | } |