Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
x86
um
stub_segv.c
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2004 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
3
* Licensed under the GPL
4
*/
5
6
#include <
sysdep/stub.h
>
7
#include <
sysdep/faultinfo.h
>
8
#include <
sysdep/mcontext.h
>
9
10
void
__attribute__
((__section__ (
".__syscall_stub"
)))
11
stub_segv_handler
(
int
sig
,
siginfo_t
*
info
,
void
*
p
)
12
{
13
struct
ucontext
*
uc
=
p
;
14
15
GET_FAULTINFO_FROM_MC
(*((
struct
faultinfo
*)
STUB_DATA
),
16
&uc->
uc_mcontext
);
17
trap_myself();
18
}
19
Generated on Thu Jan 10 2013 13:21:52 for Linux Kernel by
1.8.2