Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | thread_struct |
Macros | |
#define | STACK_TOP TASK_SIZE |
#define | STACK_TOP_MAX STACK_TOP |
#define | KERNEL_SR |
#define | USER_SR |
#define | current_text_addr() ({ __label__ _l; _l: &&_l; }) |
#define | TASK_SIZE (0x80000000UL) |
#define | TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) |
#define | user_regs(thread_info) (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - STACK_FRAME_OVERHEAD)) - 1) |
#define | task_pt_regs(task) user_regs(task_thread_info(task)) |
#define | current_regs() user_regs(current_thread_info()) |
#define | INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack) |
#define | INIT_THREAD { } |
#define | KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) |
#define | KSTK_ESP(tsk) (task_pt_regs(tsk)->sp) |
#define | init_stack (init_thread_union.stack) |
#define | cpu_relax() barrier() |
Functions | |
int | kernel_thread (int(*fn)(void *), void *arg, unsigned long flags) |
void | start_thread (struct pt_regs *regs, unsigned long nip, unsigned long sp) |
void | release_thread (struct task_struct *) |
unsigned long | get_wchan (struct task_struct *p) |
void | exit_thread (void) |
unsigned long | thread_saved_pc (struct task_struct *t) |
Definition at line 106 of file processor.h.
#define current_regs | ( | ) | user_regs(current_thread_info()) |
Definition at line 73 of file processor.h.
#define current_text_addr | ( | void | ) | ({ __label__ _l; _l: &&_l; }) |
Definition at line 37 of file processor.h.
#define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack) |
Definition at line 75 of file processor.h.
#define init_stack (init_thread_union.stack) |
Definition at line 104 of file processor.h.
#define INIT_THREAD { } |
Definition at line 77 of file processor.h.
#define KERNEL_SR |
Definition at line 29 of file processor.h.
#define KSTK_EIP | ( | tsk | ) | (task_pt_regs(tsk)->pc) |
Definition at line 80 of file processor.h.
#define KSTK_ESP | ( | tsk | ) | (task_pt_regs(tsk)->sp) |
Definition at line 81 of file processor.h.
#define STACK_TOP TASK_SIZE |
Definition at line 26 of file processor.h.
#define STACK_TOP_MAX STACK_TOP |
Definition at line 27 of file processor.h.
#define task_pt_regs | ( | task | ) | user_regs(task_thread_info(task)) |
Definition at line 72 of file processor.h.
#define TASK_SIZE (0x80000000UL) |
Definition at line 44 of file processor.h.
#define TASK_UNMAPPED_BASE (TASK_SIZE / 8 * 3) |
Definition at line 49 of file processor.h.
#define user_regs | ( | thread_info | ) | (((struct pt_regs *)((unsigned long)(thread_info) + THREAD_SIZE - STACK_FRAME_OVERHEAD)) - 1) |
Definition at line 66 of file processor.h.
#define USER_SR |
Definition at line 31 of file processor.h.
Definition at line 94 of file processor.h.
unsigned long get_wchan | ( | struct task_struct * | p | ) |
void release_thread | ( | struct task_struct * | ) |
unsigned long thread_saved_pc | ( | struct task_struct * | t | ) |