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 <asm/ptrace.h>
#include <mach/blackfin.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   0xFFFFFFFF
 
#define TASK_UNMAPPED_BASE   0
 
#define INIT_THREAD
 
#define thread_saved_pc(tsk)   (tsk->thread.pc)
 
#define KSTK_EIP(tsk)
 
#define KSTK_ESP(tsk)   ((tsk) == current ? rdusp() : (tsk)->thread.usp)
 
#define cpu_relax()   smp_mb()
 
#define blackfin_core_id()   (bfin_dspid() & 0xff)
 

Functions

void start_thread (struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp)
 
int kernel_thread (int(*fn)(void *), void *arg, unsigned long flags)
 
unsigned long get_wchan (struct task_struct *p)
 

Macro Definition Documentation

#define blackfin_core_id ( )    (bfin_dspid() & 0xff)

Definition at line 135 of file processor.h.

#define cpu_relax (   void)    smp_mb()

Definition at line 103 of file processor.h.

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

Definition at line 14 of file processor.h.

#define INIT_THREAD
Value:
{ \
sizeof(init_stack) + (unsigned long) init_stack, 0, \
PS_S, 0, 0 \
}

Definition at line 62 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 94 of file processor.h.

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

Definition at line 101 of file processor.h.

#define TASK_SIZE   0xFFFFFFFF

Definition at line 45 of file processor.h.

#define TASK_UNMAPPED_BASE   0

Definition at line 51 of file processor.h.

#define thread_saved_pc (   tsk)    (tsk->thread.pc)

Definition at line 90 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.

void start_thread ( struct pt_regs regs,
unsigned long  new_ip,
unsigned long  new_sp 
)

Definition at line 204 of file process.c.