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 <linux/personality.h>

Go to the source code of this file.

Data Structures

struct  mm_segment_t
 
struct  thread_struct
 

Macros

#define current_text_addr()   ({ void *__pc; __asm__ ("br %0,.+4" : "=r"(__pc)); __pc; })
 
#define TASK_SIZE   (0x40000000000UL)
 
#define STACK_TOP   (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL)
 
#define STACK_TOP_MAX   0x00120000000UL
 
#define TASK_UNMAPPED_BASE   ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)
 
#define INIT_THREAD   { }
 
#define KSTK_EIP(tsk)   (task_pt_regs(tsk)->pc)
 
#define KSTK_ESP(tsk)   ((tsk) == current ? rdusp() : task_thread_info(tsk)->pcb.usp)
 
#define cpu_relax()   barrier()
 
#define ARCH_HAS_PREFETCH
 
#define ARCH_HAS_PREFETCHW
 
#define ARCH_HAS_SPINLOCK_PREFETCH
 
#define spin_lock_prefetch(lock)   do { } while (0)
 

Functions

unsigned long thread_saved_pc (struct task_struct *)
 
void start_thread (struct pt_regs *, unsigned long, unsigned long)
 
void release_thread (struct task_struct *)
 
unsigned long get_wchan (struct task_struct *p)
 
void prefetch (const void *ptr)
 
void prefetchw (const void *ptr)
 

Macro Definition Documentation

#define ARCH_HAS_PREFETCH

Definition at line 61 of file processor.h.

#define ARCH_HAS_PREFETCHW

Definition at line 62 of file processor.h.

#define ARCH_HAS_SPINLOCK_PREFETCH

Definition at line 63 of file processor.h.

#define cpu_relax (   void)    barrier()

Definition at line 59 of file processor.h.

#define current_text_addr (   void)    ({ void *__pc; __asm__ ("br %0,.+4" : "=r"(__pc)); __pc; })

Definition at line 15 of file processor.h.

#define INIT_THREAD   { }

Definition at line 40 of file processor.h.

#define KSTK_EIP (   tsk)    (task_pt_regs(tsk)->pc)

Definition at line 54 of file processor.h.

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

Definition at line 56 of file processor.h.

#define spin_lock_prefetch (   lock)    do { } while (0)

Definition at line 67 of file processor.h.

#define STACK_TOP   (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL)

Definition at line 23 of file processor.h.

#define STACK_TOP_MAX   0x00120000000UL

Definition at line 26 of file processor.h.

#define TASK_SIZE   (0x40000000000UL)

Definition at line 21 of file processor.h.

#define TASK_UNMAPPED_BASE   ((current->personality & ADDR_LIMIT_32BIT) ? 0x40000000 : TASK_SIZE / 2)

Definition at line 31 of file processor.h.

Function Documentation

unsigned long get_wchan ( struct task_struct p)

Definition at line 419 of file process.c.

void prefetch ( const void ptr)
inline

Definition at line 70 of file processor.h.

void prefetchw ( const void ptr)
inline

Definition at line 75 of file processor.h.

void release_thread ( struct task_struct )

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 )

Definition at line 404 of file process.c.