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 <linux/kernel.h>
#include <asm/cache.h>
#include <asm/ptrace.h>

Go to the source code of this file.

Data Structures

struct  cpuinfo_m32r
 
struct  mm_segment_t
 
struct  debug_trap
 
struct  thread_struct
 

Macros

#define current_text_addr()   ({ __label__ _l; _l: &&_l; })
 
#define cpu_data   (&boot_cpu_data)
 
#define current_cpu_data   boot_cpu_data
 
#define TASK_SIZE   (0x00400000UL)
 
#define TASK_UNMAPPED_BASE   PAGE_ALIGN(TASK_SIZE / 3)
 
#define MAX_TRAPS   10
 
#define INIT_SP   (sizeof(init_stack) + (unsigned long) &init_stack)
 
#define INIT_THREAD
 
#define USERPS_BPSW   (M32R_PSW_BSM|M32R_PSW_BIE|M32R_PSW_BPM)
 
#define start_thread(regs, new_pc, new_spu)
 
#define copy_segments(p, mm)   do { } while (0)
 
#define release_segments(mm)   do { } while (0)
 
#define KSTK_EIP(tsk)   ((tsk)->thread.lr)
 
#define KSTK_ESP(tsk)   ((tsk)->thread.sp)
 
#define cpu_relax()   barrier()
 

Functions

void release_thread (struct task_struct *)
 
int kernel_thread (int(*fn)(void *), void *arg, unsigned long flags)
 
void copy_segments (struct task_struct *p, struct mm_struct *mm)
 
void release_segments (struct mm_struct *mm)
 
unsigned long thread_saved_pc (struct task_struct *)
 
unsigned long get_wchan (struct task_struct *p)
 

Variables

struct cpuinfo_m32r boot_cpu_data
 

Macro Definition Documentation

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

Definition at line 133 of file processor.h.

#define cpu_data   (&boot_cpu_data)

Definition at line 50 of file processor.h.

#define cpu_relax (   void)    barrier()

Definition at line 140 of file processor.h.

#define current_cpu_data   boot_cpu_data

Definition at line 51 of file processor.h.

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

Definition at line 24 of file processor.h.

#define INIT_SP   (sizeof(init_stack) + (unsigned long) &init_stack)

Definition at line 94 of file processor.h.

#define INIT_THREAD
Value:
{ \
.sp = INIT_SP, \
}

Definition at line 96 of file processor.h.

#define KSTK_EIP (   tsk)    ((tsk)->thread.lr)

Definition at line 137 of file processor.h.

#define KSTK_ESP (   tsk)    ((tsk)->thread.sp)

Definition at line 138 of file processor.h.

#define MAX_TRAPS   10

Definition at line 77 of file processor.h.

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

Definition at line 134 of file processor.h.

#define start_thread (   regs,
  new_pc,
  new_spu 
)
Value:
do { \
regs->psw = (regs->psw | USERPS_BPSW) & 0x0000FFFFUL; \
regs->bpc = new_pc; \
regs->spu = new_spu; \
} while (0)

Definition at line 107 of file processor.h.

#define TASK_SIZE   (0x00400000UL)

Definition at line 60 of file processor.h.

#define TASK_UNMAPPED_BASE   PAGE_ALIGN(TASK_SIZE / 3)

Definition at line 71 of file processor.h.

#define USERPS_BPSW   (M32R_PSW_BSM|M32R_PSW_BIE|M32R_PSW_BPM)

Definition at line 105 of file processor.h.

Function Documentation

void copy_segments ( struct task_struct p,
struct mm_struct mm 
)

Definition at line 188 of file process.c.

unsigned long get_wchan ( struct task_struct p)

Definition at line 419 of file process.c.

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

Definition at line 333 of file process.c.

void release_segments ( struct mm_struct mm)

Definition at line 132 of file process.c.

void release_thread ( struct task_struct )

Definition at line 233 of file process.c.

unsigned long thread_saved_pc ( struct task_struct )

Definition at line 404 of file process.c.

Variable Documentation

struct cpuinfo_m32r boot_cpu_data

Definition at line 38 of file setup.c.