Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
processor.h File Reference
#include <linux/cpumask.h>
#include <linux/threads.h>
#include <asm/cachectl.h>
#include <asm/cpu.h>
#include <asm/cpu-info.h>
#include <asm/mipsregs.h>
#include <asm/prefetch.h>

Go to the source code of this file.

Data Structures

struct  mips_fpu_struct
 
struct  mips_dsp_state
 
struct  mips3264_watch_reg_state
 
union  mips_watch_reg_state
 
struct  mm_segment_t
 
struct  thread_struct
 

Macros

#define current_text_addr()   ({ __label__ _l; _l: &&_l;})
 
#define HAVE_ARCH_PICK_MMAP_LAYOUT   1
 
#define SPECIAL_PAGES_SIZE   PAGE_SIZE
 
#define STACK_TOP   ((TASK_SIZE & PAGE_MASK) - SPECIAL_PAGES_SIZE)
 
#define TASK_UNMAPPED_BASE   PAGE_ALIGN(TASK_SIZE / 3)
 
#define NUM_FPU_REGS   32
 
#define NUM_DSP_REGS   6
 
#define INIT_CPUMASK
 
#define ARCH_MIN_TASKALIGN   8
 
#define FPAFF_INIT
 
#define OCTEON_INIT
 
#define INIT_THREAD
 
#define release_thread(thread)   do { } while(0)
 
#define __KSTK_TOS(tsk)
 
#define task_pt_regs(tsk)   ((struct pt_regs *)__KSTK_TOS(tsk))
 
#define KSTK_EIP(tsk)   (task_pt_regs(tsk)->cp0_epc)
 
#define KSTK_ESP(tsk)   (task_pt_regs(tsk)->regs[29])
 
#define KSTK_STATUS(tsk)   (task_pt_regs(tsk)->cp0_status)
 
#define cpu_relax()   barrier()
 
#define return_address()   ({__asm__ __volatile__("":::"$31");__builtin_return_address(0);})
 

Typedefs

typedef __u64 fpureg_t
 
typedef __u32 dspreg_t
 

Functions

long 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 *regs, unsigned long pc, unsigned long sp)
 
unsigned long get_wchan (struct task_struct *p)
 

Variables

void(* cpu_wait )(void)
 
unsigned int vced_count
 
unsigned int vcei_count
 

Macro Definition Documentation

#define __KSTK_TOS (   tsk)
Value:
((unsigned long)task_stack_page(tsk) + \
THREAD_SIZE - 32 - sizeof(struct pt_regs))

Definition at line 308 of file processor.h.

#define ARCH_MIN_TASKALIGN   8

Definition at line 194 of file processor.h.

#define cpu_relax (   void)    barrier()

Definition at line 315 of file processor.h.

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

Definition at line 26 of file processor.h.

#define FPAFF_INIT

Definition at line 243 of file processor.h.

#define HAVE_ARCH_PICK_MMAP_LAYOUT   1

Definition at line 38 of file processor.h.

#define INIT_CPUMASK
Value:
{ \
{0,} \
}

Definition at line 119 of file processor.h.

#define INIT_THREAD

Definition at line 253 of file processor.h.

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

Definition at line 311 of file processor.h.

#define KSTK_ESP (   tsk)    (task_pt_regs(tsk)->regs[29])

Definition at line 312 of file processor.h.

#define KSTK_STATUS (   tsk)    (task_pt_regs(tsk)->cp0_status)

Definition at line 313 of file processor.h.

#define NUM_DSP_REGS   6

Definition at line 110 of file processor.h.

#define NUM_FPU_REGS   32

Definition at line 94 of file processor.h.

#define OCTEON_INIT

Definition at line 250 of file processor.h.

#define release_thread (   thread)    do { } while(0)

Definition at line 295 of file processor.h.

#define return_address ( )    ({__asm__ __volatile__("":::"$31");__builtin_return_address(0);})

Definition at line 329 of file processor.h.

#define SPECIAL_PAGES_SIZE   PAGE_SIZE

Definition at line 44 of file processor.h.

#define STACK_TOP   ((TASK_SIZE & PAGE_MASK) - SPECIAL_PAGES_SIZE)

Definition at line 85 of file processor.h.

#define task_pt_regs (   tsk)    ((struct pt_regs *)__KSTK_TOS(tsk))

Definition at line 310 of file processor.h.

#define TASK_UNMAPPED_BASE   PAGE_ALIGN(TASK_SIZE / 3)

Definition at line 91 of file processor.h.

Typedef Documentation

typedef __u32 dspreg_t

Definition at line 112 of file processor.h.

typedef __u64 fpureg_t

Definition at line 96 of file processor.h.

Function Documentation

unsigned long get_wchan ( struct task_struct p)

Definition at line 419 of file process.c.

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

Definition at line 333 of file process.c.

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

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.

Variable Documentation

void(* cpu_wait)(void)

Definition at line 37 of file cpu-probe.c.

unsigned int vced_count

Definition at line 17 of file proc.c.

unsigned int vcei_count

Definition at line 17 of file proc.c.