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/threads.h>
#include <linux/thread_info.h>
#include <asm/page.h>
#include <asm/ptrace.h>
#include <asm/cpu-regs.h>
#include <asm/uaccess.h>
#include <asm/current.h>

Go to the source code of this file.

Data Structures

struct  mn10300_cpuinfo
struct  fpu_state_struct
struct  thread_struct


#define current_text_addr()
#define cpu_data   &boot_cpu_data
#define current_cpu_data   boot_cpu_data
#define cpu_relax()   barrier()
#define TASK_SIZE   0x70000000
#define STACK_TOP   0x70000000
#define TASK_UNMAPPED_BASE   0x30000000
#define THREAD_USING_FPU   0x00000001 /* T if this task is using the FPU */
#define THREAD_HAS_FPU   0x00000002 /* T if this task owns the FPU right now */
#define INIT_MMAP
#define task_pt_regs(task)   ((task)->thread.uregs)
#define KSTK_EIP(task)   (task_pt_regs(task)->pc)
#define KSTK_ESP(task)   (task_pt_regs(task)->sp)
#define KSTK_TOP(info)


void get_mem_info (unsigned long *mem_base, unsigned long *mem_size)
void show_registers (struct pt_regs *regs)
void identify_cpu (struct mn10300_cpuinfo *)
void print_cpu_info (struct mn10300_cpuinfo *)
void dodgy_tsc (void)
void release_thread (struct task_struct *)
unsigned long thread_saved_pc (struct task_struct *tsk)
unsigned long get_wchan (struct task_struct *p)


struct mn10300_cpuinfo boot_cpu_data

Macro Definition Documentation


Definition at line 151 of file processor.h.


Definition at line 152 of file processor.h.

#define cpu_data   &boot_cpu_data

Definition at line 64 of file processor.h.

#define cpu_relax (   void)    barrier()

Definition at line 71 of file processor.h.

#define current_cpu_data   boot_cpu_data

Definition at line 65 of file processor.h.

#define current_text_addr (   void)
({ \
void *__pc; \
asm("mov pc,%0" : "=a"(__pc)); \
__pc; \

Definition at line 32 of file processor.h.

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

Definition at line 116 of file processor.h.

{ \
.uregs = init_uregs, \
.pc = 0, \
.sp = 0, \
.a3 = 0, \
.wchan = 0, \

Definition at line 107 of file processor.h.

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

Definition at line 143 of file processor.h.

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

Definition at line 144 of file processor.h.

#define KSTK_TOP (   info)
({ \
(unsigned long)(info) + THREAD_SIZE; \

Definition at line 146 of file processor.h.

#define STACK_TOP   0x70000000

Definition at line 81 of file processor.h.


Definition at line 82 of file processor.h.

#define task_pt_regs (   task)    ((task)->thread.uregs)

Definition at line 142 of file processor.h.

#define TASK_SIZE   0x70000000

Definition at line 76 of file processor.h.

#define TASK_UNMAPPED_BASE   0x30000000

Definition at line 87 of file processor.h.

#define THREAD_HAS_FPU   0x00000002 /* T if this task owns the FPU right now */

Definition at line 103 of file processor.h.

#define THREAD_USING_FPU   0x00000001 /* T if this task is using the FPU */

Definition at line 102 of file processor.h.

Function Documentation

void dodgy_tsc ( void  )
void get_mem_info ( unsigned long mem_base,
unsigned long mem_size 

Definition at line 83 of file proc-init.c.

unsigned long get_wchan ( struct task_struct p)

Definition at line 419 of file process.c.

void identify_cpu ( struct mn10300_cpuinfo )
void print_cpu_info ( struct mn10300_cpuinfo )
void release_thread ( struct task_struct )

Definition at line 233 of file process.c.

void show_registers ( struct pt_regs regs)

Definition at line 17 of file traps.c.

unsigned long thread_saved_pc ( struct task_struct tsk)

Definition at line 404 of file process.c.

Variable Documentation

struct mn10300_cpuinfo boot_cpu_data

Definition at line 38 of file setup.c.