Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

mips/kernel/process.c File Reference

#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/ptrace.h>
#include <linux/malloc.h>
#include <linux/mman.h>
#include <linux/sys.h>
#include <linux/user.h>
#include <linux/a.out.h>
#include <asm/bootinfo.h>
#include <asm/pgtable.h>
#include <asm/system.h>
#include <asm/mipsregs.h>
#include <asm/processor.h>
#include <asm/stackframe.h>
#include <asm/uaccess.h>
#include <asm/io.h>
#include <asm/elf.h>

Include dependency graph for mips/kernel/process.c:

Go to the source code of this file.

Functions

asmlinkage void ret_from_sys_call (void)
void start_thread (struct pt_regs *regs, unsigned long pc, unsigned long sp)
void exit_thread (void)
void flush_thread (void)
void release_thread (struct task_struct *dead_task)
int copy_thread (int nr, unsigned long clone_flags, unsigned long usp, struct task_struct *p, struct pt_regs *regs)
int dump_fpu (struct pt_regs *regs, elf_fpregset_t *r)
void dump_thread (struct pt_regs *regs, struct user *dump)
pid_t kernel_thread (int(*fn)(void *), void *arg, unsigned long flags)

Variables

task_struct * last_task_used_math = NULL


Function Documentation

int copy_thread int  nr,
unsigned long  clone_flags,
unsigned long  usp,
struct task_struct *  p,
struct pt_regs regs
 

Definition at line 72 of file mips/kernel/process.c.

References CP0_STATUS, pt_regs::cp0_status, current, KERNEL_DS, KERNEL_STACK_SIZE, last_task_used_math, long, PER_LINUX, read_32bit_cp0_register, pt_regs::regs, ret_from_sys_call, ST0_CU0, ST0_CU1, ST0_CU2, ST0_CU3, ST0_KSU, and USER_DS.

int dump_fpu struct pt_regs regs,
elf_fpregset_t r
 

Definition at line 122 of file mips/kernel/process.c.

References pt_regs::cp0_status, current, memcpy, and ST0_CU1.

void dump_thread struct pt_regs regs,
struct user dump
 

Definition at line 135 of file mips/kernel/process.c.

References CMAGIC, current, EF_SIZE, user::magic, memcpy, PAGE_SHIFT, PAGE_SIZE, user::regs, pt_regs::regs, user::start_code, user::start_data, user::start_stack, user::u_dsize, user::u_ssize, and user::u_tsize.

void exit_thread void   ) 
 

Definition at line 48 of file mips/kernel/process.c.

References __asm__(), current, last_task_used_math, NULL, and ST0_CU1.

Here is the call graph for this function:

void flush_thread void   ) 
 

Definition at line 58 of file mips/kernel/process.c.

References __asm__(), current, last_task_used_math, NULL, and ST0_CU1.

Here is the call graph for this function:

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

Definition at line 152 of file mips/kernel/process.c.

References __asm__(), __NR_clone, __NR_exit, and CLONE_VM.

Here is the call graph for this function:

void release_thread struct task_struct *  dead_task  ) 
 

Definition at line 68 of file mips/kernel/process.c.

asmlinkage void ret_from_sys_call void   ) 
 

Definition at line 41 of file arm/kernel/process.c.

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

Definition at line 39 of file mips/kernel/process.c.

References pt_regs::cp0_epc, pt_regs::cp0_status, current, KSU_USER, pt_regs::regs, ST0_CU0, ST0_KSU, and USER_DS.


Variable Documentation

struct task_struct* last_task_used_math = NULL
 

Definition at line 32 of file mips/kernel/process.c.

Referenced by copy_thread(), do_cpu(), do_fpd_trap(), do_fpe_trap(), dump_fpu(), enable_kernel_fp(), exit_thread(), flush_thread(), handle_hw_divzero(), restore_fpu_state(), restore_sigcontext(), save_fpu_state(), setup_sigcontext(), show_mem(), show_regs(), start_thread(), and sys_ptrace().