Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
processor.h File Reference
#include <linux/linkage.h>
#include <linux/irqflags.h>
#include <asm/cpu.h>
#include <asm/page.h>
#include <asm/ptrace.h>
#include <asm/setup.h>
#include <asm/runtime_instr.h>

Go to the source code of this file.

Data Structures

struct  mm_segment_t
 
struct  thread_struct
 
struct  stack_frame
 

Macros

#define current_text_addr()   ({ void *pc; asm("basr %0,0" : "=a" (pc)); pc; })
 
#define TASK_SIZE   (1UL << 31)
 
#define TASK_UNMAPPED_BASE   (1UL << 30)
 
#define STACK_TOP   (1UL << 31)
 
#define STACK_TOP_MAX   (1UL << 31)
 
#define HAVE_ARCH_PICK_MMAP_LAYOUT
 
#define PER_FLAG_NO_TE   1UL /* Flag to disable transactions. */
 
#define ARCH_MIN_TASKALIGN   8
 
#define INIT_THREAD
 
#define start_thread(regs, new_psw, new_stackp)
 
#define start_thread31(regs, new_psw, new_stackp)
 
#define task_pt_regs(tsk)
 
#define KSTK_EIP(tsk)   (task_pt_regs(tsk)->psw.addr)
 
#define KSTK_ESP(tsk)   (task_pt_regs(tsk)->gprs[15])
 
#define local_mcck_enable()   __set_psw_mask(psw_kernel_bits | PSW_MASK_DAT | PSW_MASK_MCHECK)
 
#define local_mcck_disable()   __set_psw_mask(psw_kernel_bits | PSW_MASK_DAT)
 
#define ARCH_LOW_ADDRESS_LIMIT   0x7fffffffUL
 
#define mem_assign_absolute(dest, val)
 
#define EX_TABLE(_fault, _target)
 

Typedefs

typedef struct thread_struct thread_struct
 

Functions

void s390_adjust_jiffies (void)
 
void execve_tail (void)
 
void release_thread (struct task_struct *)
 
unsigned long thread_saved_pc (struct task_struct *t)
 
void show_code (struct pt_regs *regs)
 
void print_fn_code (unsigned char *code, unsigned long len)
 
int insn_to_mnemonic (unsigned char *instruction, char buf[8])
 
unsigned long get_wchan (struct task_struct *p)
 
void s390_base_mcck_handler (void)
 
void s390_base_pgm_handler (void)
 
void s390_base_ext_handler (void)
 
int memcpy_real (void *, void *, size_t)
 
void memcpy_absolute (void *, void *, size_t)
 

Variables

struct seq_operations cpuinfo_op
 
int sysctl_ieee_emulation_warnings
 
void(* s390_base_mcck_handler_fn )(void)
 
void(* s390_base_pgm_handler_fn )(void)
 
void(* s390_base_ext_handler_fn )(void)
 

Macro Definition Documentation

#define ARCH_LOW_ADDRESS_LIMIT   0x7fffffffUL

Definition at line 354 of file processor.h.

#define ARCH_MIN_TASKALIGN   8

Definition at line 117 of file processor.h.

#define current_text_addr (   void)    ({ void *pc; asm("basr %0,0" : "=a" (pc)); pc; })

Definition at line 28 of file processor.h.

#define EX_TABLE (   _fault,
  _target 
)
Value:
".section __ex_table,\"a\"\n" \
".align 4\n" \
".long (" #_fault ") - .\n" \
".long (" #_target ") - .\n" \
".previous\n"

Definition at line 369 of file processor.h.

#define HAVE_ARCH_PICK_MMAP_LAYOUT

Definition at line 65 of file processor.h.

#define INIT_THREAD
Value:
{ \
.ksp = sizeof(init_stack) + (unsigned long) &init_stack, \
}

Definition at line 119 of file processor.h.

#define KSTK_EIP (   tsk)    (task_pt_regs(tsk)->psw.addr)

Definition at line 169 of file processor.h.

#define KSTK_ESP (   tsk)    (task_pt_regs(tsk)->gprs[15])

Definition at line 170 of file processor.h.

#define local_mcck_disable ( )    __set_psw_mask(psw_kernel_bits | PSW_MASK_DAT)

Definition at line 339 of file processor.h.

#define local_mcck_enable ( )    __set_psw_mask(psw_kernel_bits | PSW_MASK_DAT | PSW_MASK_MCHECK)

Definition at line 337 of file processor.h.

#define mem_assign_absolute (   dest,
  val 
)
Value:
{ \
__typeof__(dest) __tmp = (val); \
\
BUILD_BUG_ON(sizeof(__tmp) != sizeof(val)); \
memcpy_absolute(&(dest), &__tmp, sizeof(__tmp)); \
}

Definition at line 359 of file processor.h.

#define PER_FLAG_NO_TE   1UL /* Flag to disable transactions. */

Definition at line 94 of file processor.h.

#define STACK_TOP   (1UL << 31)

Definition at line 58 of file processor.h.

#define STACK_TOP_MAX   (1UL << 31)

Definition at line 59 of file processor.h.

#define start_thread (   regs,
  new_psw,
  new_stackp 
)
Value:
do { \
regs->psw.addr = new_psw | PSW_ADDR_AMODE; \
regs->gprs[15] = new_stackp; \
execve_tail(); \
} while (0)

Definition at line 126 of file processor.h.

#define start_thread31 (   regs,
  new_psw,
  new_stackp 
)
Value:
do { \
regs->psw.addr = new_psw | PSW_ADDR_AMODE; \
regs->gprs[15] = new_stackp; \
__tlb_flush_mm(current->mm); \
crst_table_downgrade(current->mm, 1UL << 31); \
update_mm(current->mm, current); \
execve_tail(); \
} while (0)

Definition at line 133 of file processor.h.

#define task_pt_regs (   tsk)
Value:
((struct pt_regs *) \

Definition at line 167 of file processor.h.

#define TASK_SIZE   (1UL << 31)

Definition at line 45 of file processor.h.

#define TASK_UNMAPPED_BASE   (1UL << 30)

Definition at line 46 of file processor.h.

Typedef Documentation

Definition at line 96 of file processor.h.

Function Documentation

void execve_tail ( void  )

Definition at line 237 of file process.c.

unsigned long get_wchan ( struct task_struct p)

Definition at line 419 of file process.c.

int insn_to_mnemonic ( unsigned char instruction,
char  buf[8] 
)

insn_to_mnemonic - decode an s390 instruction : instruction to decode : buffer to fill with mnemonic

Decode the instruction at and store the corresponding mnemonic into . is left unchanged if the instruction could not be decoded. Returns: %0 on success, %-ENOENT if the instruction was not found.

Definition at line 1515 of file dis.c.

void memcpy_absolute ( void ,
void ,
size_t   
)

Definition at line 106 of file maccess.c.

int memcpy_real ( void ,
void ,
size_t   
)

Definition at line 89 of file maccess.c.

void print_fn_code ( unsigned char code,
unsigned long  len 
)

Definition at line 1665 of file dis.c.

void release_thread ( struct task_struct )

Definition at line 233 of file process.c.

void s390_adjust_jiffies ( void  )

Definition at line 377 of file sysinfo.c.

void s390_base_ext_handler ( void  )
void s390_base_mcck_handler ( void  )
void s390_base_pgm_handler ( void  )
void show_code ( struct pt_regs regs)

Definition at line 1592 of file dis.c.

unsigned long thread_saved_pc ( struct task_struct t)

Definition at line 404 of file process.c.

Variable Documentation

struct seq_operations cpuinfo_op

Definition at line 1479 of file setup.c.

void(* s390_base_ext_handler_fn)(void)
void(* s390_base_mcck_handler_fn)(void)
void(* s390_base_pgm_handler_fn)(void)
int sysctl_ieee_emulation_warnings