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

Go to the source code of this file.

Macros

#define STACK_TOP   TASK_SIZE
 
#define STACK_TOP_MAX   STACK_TOP
 
#define TASK_UNMAPPED_BASE   (PAGE_ALIGN(TASK_SIZE / 3))
 
#define THREAD_SIZE   PAGE_SIZE
 
#define THREAD_SIZE_ORDER   (0)
 
#define user_regs(thread_info)   (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE)) - 1)
 
#define task_pt_regs(task)   user_regs(task_thread_info(task))
 
#define current_regs()   task_pt_regs(current)
 
#define KSTK_ESP(tsk)   ((tsk) == current ? rdusp() : (tsk)->thread.usp)
 
#define init_stack   (init_thread_union.stack)
 
#define cpu_relax()   barrier()
 
#define HAVE_DISABLE_HLT
 

Functions

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

Macro Definition Documentation

#define cpu_relax (   void)    barrier()

Definition at line 68 of file processor.h.

#define current_regs ( )    task_pt_regs(current)

Definition at line 50 of file processor.h.

#define HAVE_DISABLE_HLT

Definition at line 73 of file processor.h.

#define init_stack   (init_thread_union.stack)

Definition at line 66 of file processor.h.

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

Definition at line 56 of file processor.h.

#define STACK_TOP   TASK_SIZE

Definition at line 20 of file processor.h.

#define STACK_TOP_MAX   STACK_TOP

Definition at line 21 of file processor.h.

#define task_pt_regs (   task)    user_regs(task_thread_info(task))

Definition at line 49 of file processor.h.

#define TASK_UNMAPPED_BASE   (PAGE_ALIGN(TASK_SIZE / 3))

Definition at line 26 of file processor.h.

#define THREAD_SIZE   PAGE_SIZE

Definition at line 32 of file processor.h.

#define THREAD_SIZE_ORDER   (0)

Definition at line 33 of file processor.h.

#define user_regs (   thread_info)    (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE)) - 1)

Definition at line 43 of file processor.h.

Function Documentation

void default_idle ( void  )

Definition at line 29 of file process.c.

void disable_hlt ( void  )

Definition at line 63 of file process.c.

void enable_hlt ( void  )

Definition at line 70 of file process.c.

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.