Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
processor.h File Reference
#include <linux/compiler.h>
#include <asm/segment.h>
#include <asm/fpu.h>
#include <asm/ptrace.h>
#include <asm/current.h>

Go to the source code of this file.

Data Structures

struct  thread_struct
 

Macros

#define current_text_addr()   ({ __label__ _l; _l: &&_l;})
 
#define TASK_SIZE   (0xFFFFFFFFUL)
 
#define TASK_UNMAPPED_BASE   0
 
#define INIT_THREAD
 
#define KSTK_EIP(tsk)
 
#define KSTK_ESP(tsk)   ((tsk) == current ? rdusp() : (tsk)->thread.usp)
 
#define cpu_relax()   barrier()
 
#define HARD_RESET_NOW()
 

Functions

int kernel_thread (int(*fn)(void *), void *arg, unsigned long flags)
 
unsigned long thread_saved_pc (struct task_struct *tsk)
 
unsigned long get_wchan (struct task_struct *p)
 

Macro Definition Documentation

#define cpu_relax (   void)    barrier()

Definition at line 134 of file processor.h.

#define current_text_addr (   void)    ({ __label__ _l; _l: &&_l;})

Definition at line 18 of file processor.h.

#define HARD_RESET_NOW ( )
Value:
({ \
local_irq_disable(); \
asm("jmp @@0"); \
})

Definition at line 136 of file processor.h.

#define INIT_THREAD
Value:
{ \
.ksp = sizeof(init_stack) + (unsigned long)init_stack, \
.usp = 0, \
.ccr = PS_S, \
.esp0 = 0, \
.breakinfo = { \
.addr = (unsigned short *)-1, \
.inst = 0 \
} \
}

Definition at line 64 of file processor.h.

#define KSTK_EIP (   tsk)
Value:
({ \
unsigned long eip = 0; \
if ((tsk)->thread.esp0 > PAGE_SIZE && \
MAP_NR((tsk)->thread.esp0) < max_mapnr) \
eip = ((struct pt_regs *) (tsk)->thread.esp0)->pc; \
eip; })

Definition at line 125 of file processor.h.

#define KSTK_ESP (   tsk)    ((tsk) == current ? rdusp() : (tsk)->thread.usp)

Definition at line 132 of file processor.h.

#define TASK_SIZE   (0xFFFFFFFFUL)

Definition at line 40 of file processor.h.

#define TASK_UNMAPPED_BASE   0

Definition at line 51 of file processor.h.

Function Documentation

unsigned long get_wchan ( struct task_struct p)

Definition at line 419 of file process.c.

int kernel_thread ( int(*)(void *)  fn,
void arg,
unsigned long  flags 
)

Definition at line 333 of file process.c.

unsigned long thread_saved_pc ( struct task_struct tsk)

Definition at line 404 of file process.c.