Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
signal.c File Reference
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/kernel.h>
#include <linux/signal.h>
#include <linux/errno.h>
#include <linux/wait.h>
#include <linux/ptrace.h>
#include <linux/tracehook.h>
#include <linux/unistd.h>
#include <linux/stddef.h>
#include <linux/compat.h>
#include <linux/elf.h>
#include <asm/ucontext.h>
#include <asm/rt_sigframe.h>
#include <asm/uaccess.h>
#include <asm/pgalloc.h>
#include <asm/cacheflush.h>
#include <asm/asm-offsets.h>

Go to the source code of this file.

Macros

#define DEBUG_SIG   0
 
#define DEBUG_SIG_LEVEL   2
 
#define DBG(LEVEL,...)
 
#define A(__x)   ((unsigned long)(__x))
 
#define INSN_LDI_R25_0   0x34190000 /* ldi 0,%r25 (in_syscall=0) */
 
#define INSN_LDI_R25_1   0x34190002 /* ldi 1,%r25 (in_syscall=1) */
 
#define INSN_LDI_R20   0x3414015a /* ldi __NR_rt_sigreturn,%r20 */
 
#define INSN_BLE_SR2_R0   0xe4008200 /* be,l 0x100(%sr2,%r0),%sr0,%r31 */
 
#define INSN_NOP   0x08000240 /* nop */
 
#define INSN_DIE_HORRIBLY   0x68000ccc /* stw %r0,0x666(%sr0,%r0) */
 

Functions

void sys_rt_sigreturn (struct pt_regs *regs, int in_syscall)
 
asmlinkage void do_signal (struct pt_regs *regs, long in_syscall)
 
void do_notify_resume (struct pt_regs *regs, long in_syscall)
 

Macro Definition Documentation

#define A (   __x)    ((unsigned long)(__x))

Definition at line 56 of file signal.c.

#define DBG (   LEVEL,
  ... 
)

Definition at line 48 of file signal.c.

#define DEBUG_SIG   0

Definition at line 40 of file signal.c.

#define DEBUG_SIG_LEVEL   2

Definition at line 41 of file signal.c.

#define INSN_BLE_SR2_R0   0xe4008200 /* be,l 0x100(%sr2,%r0),%sr0,%r31 */

Definition at line 73 of file signal.c.

#define INSN_DIE_HORRIBLY   0x68000ccc /* stw %r0,0x666(%sr0,%r0) */

Definition at line 76 of file signal.c.

#define INSN_LDI_R20   0x3414015a /* ldi __NR_rt_sigreturn,%r20 */

Definition at line 72 of file signal.c.

#define INSN_LDI_R25_0   0x34190000 /* ldi 0,%r25 (in_syscall=0) */

Definition at line 70 of file signal.c.

#define INSN_LDI_R25_1   0x34190002 /* ldi 1,%r25 (in_syscall=1) */

Definition at line 71 of file signal.c.

#define INSN_NOP   0x08000240 /* nop */

Definition at line 74 of file signal.c.

Function Documentation

void do_notify_resume ( struct pt_regs regs,
long  in_syscall 
)

Definition at line 593 of file signal.c.

asmlinkage void do_signal ( struct pt_regs regs,
long  in_syscall 
)

Definition at line 562 of file signal.c.

void sys_rt_sigreturn ( struct pt_regs regs,
int  in_syscall 
)

Definition at line 95 of file signal.c.