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

Go to the source code of this file.

Data Structures

struct  thread_struct
 

Macros

#define current_text_addr()
 
#define TASK_SIZE   0xFFFFF000
 
#define TASK_UNMAPPED_BASE   0
 
#define INIT_THREAD
 
#define INIT_MMAP
 
#define task_pt_regs(task)   ((struct pt_regs *)(THREAD_START_SP + task_stack_page(task)) - 1)
 
#define alloc_kernel_stack()   __get_free_page(GFP_KERNEL)
 
#define free_kernel_stack(page)   free_page((page))
 
#define copy_segments(tsk, mm)   do { } while (0)
 
#define release_segments(mm)   do { } while (0)
 
#define thread_saved_pc(tsk)   (task_pt_regs(tsk)->pc)
 
#define thread_saved_ksp(tsk)   (*(((unsigned long *)&(tsk)->thread.b15_14) + 1))
 
#define thread_saved_dp(tsk)   (*(unsigned long *)&(tsk)->thread.b15_14)
 
#define KSTK_EIP(task)   (task_pt_regs(task)->pc)
 
#define KSTK_ESP(task)   (task_pt_regs(task)->sp)
 
#define cpu_relax()   do { } while (0)
 
#define HARD_RESET_NOW()
 

Functions

void start_thread (struct pt_regs *regs, unsigned int pc, unsigned long usp)
 
unsigned long get_wchan (struct task_struct *p)
 

Variables

struct seq_operations cpuinfo_op
 
unsigned int c6x_core_freq
 
void(* c6x_restart )(void)
 
void(* c6x_halt )(void)
 

Macro Definition Documentation

#define alloc_kernel_stack ( )    __get_free_page(GFP_KERNEL)

Definition at line 80 of file processor.h.

#define copy_segments (   tsk,
  mm 
)    do { } while (0)

Definition at line 95 of file processor.h.

#define cpu_relax (   void)    do { } while (0)

Definition at line 123 of file processor.h.

#define current_text_addr (   void)
Value:
({ \
void *__pc; \
asm("mvc .S2 pce1,%0\n" : "=b"(__pc)); \
__pc; \
})

Definition at line 24 of file processor.h.

#define free_kernel_stack (   page)    free_page((page))

Definition at line 81 of file processor.h.

#define HARD_RESET_NOW ( )

Definition at line 128 of file processor.h.

#define INIT_MMAP
Value:
{ \
&init_mm, 0, 0, NULL, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, 1, \
NULL, NULL }

Definition at line 73 of file processor.h.

#define INIT_THREAD
Value:
{ \
.usp = 0, \
.wchan = 0, \
}

Definition at line 67 of file processor.h.

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

Definition at line 120 of file processor.h.

#define KSTK_ESP (   task)    (task_pt_regs(task)->sp)

Definition at line 121 of file processor.h.

#define release_segments (   mm)    do { } while (0)

Definition at line 96 of file processor.h.

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

Definition at line 77 of file processor.h.

#define TASK_SIZE   0xFFFFF000

Definition at line 46 of file processor.h.

#define TASK_UNMAPPED_BASE   0

Definition at line 52 of file processor.h.

#define thread_saved_dp (   tsk)    (*(unsigned long *)&(tsk)->thread.b15_14)

Definition at line 114 of file processor.h.

#define thread_saved_ksp (   tsk)    (*(((unsigned long *)&(tsk)->thread.b15_14) + 1))

Definition at line 112 of file processor.h.

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

Definition at line 101 of file processor.h.

Function Documentation

unsigned long get_wchan ( struct task_struct p)

Definition at line 419 of file process.c.

void start_thread ( struct pt_regs regs,
unsigned int  pc,
unsigned long  usp 
)

Definition at line 134 of file process.c.

Variable Documentation

unsigned int c6x_core_freq

Definition at line 93 of file setup.c.

void(* c6x_halt)(void)

Definition at line 25 of file process.c.

void(* c6x_restart)(void)

Definition at line 24 of file process.c.

struct seq_operations cpuinfo_op

Definition at line 1479 of file setup.c.