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

Go to the source code of this file.

Data Structures

struct  thread_struct
 

Macros

#define cpu_relax()   barrier()
 
#define cpu_sleep()   do {} while (0)
 
#define task_pt_regs(tsk)   (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1)
 
#define TASK_SIZE   (0x81000000 - 0x80000000)
 
#define current_text_addr()   ({ __label__ _l; _l: &&_l; })
 
#define TASK_UNMAPPED_BASE   0
 
#define INIT_THREAD   { }
 
#define KSTK_EIP(tsk)   (0)
 
#define KSTK_ESP(tsk)   (0)
 

Functions

void start_thread (struct pt_regs *regs, unsigned long pc, unsigned long usp)
 
void ret_from_fork (void)
 
unsigned long thread_saved_pc (struct task_struct *t)
 
unsigned long get_wchan (struct task_struct *p)
 
int kernel_thread (int(*fn)(void *), void *arg, unsigned long flags)
 

Variables

struct seq_operations cpuinfo_op
 

Macro Definition Documentation

#define cpu_relax (   void)    barrier()

Definition at line 24 of file processor.h.

#define cpu_sleep ( )    do {} while (0)

Definition at line 25 of file processor.h.

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

Definition at line 52 of file processor.h.

#define INIT_THREAD   { }

Definition at line 65 of file processor.h.

#define KSTK_EIP (   tsk)    (0)

Definition at line 86 of file processor.h.

#define KSTK_ESP (   tsk)    (0)

Definition at line 87 of file processor.h.

#define task_pt_regs (   tsk)    (((struct pt_regs *)(THREAD_SIZE + task_stack_page(tsk))) - 1)

Definition at line 27 of file processor.h.

#define TASK_SIZE   (0x81000000 - 0x80000000)

Definition at line 46 of file processor.h.

#define TASK_UNMAPPED_BASE   0

Definition at line 58 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 ret_from_fork ( void  )

Definition at line 375 of file process.c.

void start_thread ( struct pt_regs regs,
unsigned long  pc,
unsigned long  usp 
)

Definition at line 204 of file process.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.