Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
branch.h File Reference
#include <asm/ptrace.h>
#include <asm/inst.h>

Go to the source code of this file.

Macros

#define BRANCH_LIKELY_TAKEN   0x0001
 

Functions

int __compute_return_epc (struct pt_regs *regs)
 
int __compute_return_epc_for_insn (struct pt_regs *regs, union mips_instruction insn)
 

Macro Definition Documentation

#define BRANCH_LIKELY_TAKEN   0x0001

Definition at line 27 of file branch.h.

Function Documentation

int __compute_return_epc ( struct pt_regs regs)

Definition at line 267 of file branch.c.

int __compute_return_epc_for_insn ( struct pt_regs regs,
union mips_instruction  insn 
)

__compute_return_epc_for_insn - Computes the return address and do emulate branch simulation, if required.

: Pointer to pt_regs : branch instruction to decode

Returns
: -EFAULT on error and forces SIGBUS, and on success returns 0 or BRANCH_LIKELY_TAKEN as appropriate after evaluating the branch.

Definition at line 31 of file branch.c.