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/mem-layout.h>
#include <asm/registers.h>
#include <asm/hexagon_vm.h>

Go to the source code of this file.

Data Structures

struct  thread_struct
 
struct  hexagon_switch_stack
 

Macros

#define current_text_addr()   ({ __label__ _l; _l: &&_l; })
 
#define INIT_THREAD
 
#define cpu_relax()   __vmyield()
 
#define TASK_UNMAPPED_BASE   (PAGE_ALIGN(TASK_SIZE/3))
 
#define task_pt_regs(task)   ((struct pt_regs *)(task_stack_page(task) + THREAD_SIZE) - 1)
 
#define KSTK_EIP(tsk)   (pt_elr(task_pt_regs(tsk)))
 
#define KSTK_ESP(tsk)   (pt_psp(task_pt_regs(tsk)))
 

Functions

pid_t kernel_thread (int(*fn)(void *), void *arg, unsigned long flags)
 
unsigned long thread_saved_pc (struct task_struct *tsk)
 
void start_thread (struct pt_regs *, unsigned long, unsigned long)
 
void release_thread (struct task_struct *dead_task)
 
unsigned long get_wchan (struct task_struct *p)
 

Macro Definition Documentation

#define cpu_relax (   void)    __vmyield()

Definition at line 59 of file processor.h.

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

Definition at line 31 of file processor.h.

#define INIT_THREAD
Value:
{ \
}

Definition at line 56 of file processor.h.

#define KSTK_EIP (   tsk)    (pt_elr(task_pt_regs(tsk)))

Definition at line 80 of file processor.h.

#define KSTK_ESP (   tsk)    (pt_psp(task_pt_regs(tsk)))

Definition at line 81 of file processor.h.

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

Definition at line 77 of file processor.h.

#define TASK_UNMAPPED_BASE   (PAGE_ALIGN(TASK_SIZE/3))

Definition at line 74 of file processor.h.

Function Documentation

unsigned long get_wchan ( struct task_struct p)

Definition at line 419 of file process.c.

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

Definition at line 333 of file process.c.

void release_thread ( struct task_struct dead_task)

Definition at line 233 of file process.c.

void start_thread ( struct pt_regs ,
unsigned  long,
unsigned  long 
)

Definition at line 204 of file process.c.

unsigned long thread_saved_pc ( struct task_struct tsk)

Definition at line 404 of file process.c.