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

s390/kernel/process.c File Reference

#include <stdarg.h>
#include <linux/config.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/smp.h>
#include <linux/smp_lock.h>
#include <linux/stddef.h>
#include <linux/unistd.h>
#include <linux/ptrace.h>
#include <linux/malloc.h>
#include <linux/vmalloc.h>
#include <linux/user.h>
#include <linux/a.out.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/system.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/misc390.h>

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

Go to the source code of this file.

Defines

#define __KERNEL_SYSCALLS__

Functions

asmlinkage void ret_from_fork (void)
asmlinkage int sys_idle (void)
static int sprintf_regs (int line, char *buff, struct task_struct *task, struct pt_regs *regs)
void show_regs (struct pt_regs *regs)
char * task_show_regs (struct task_struct *task, char *buffer)
int kernel_thread (int(*fn)(void *), void *arg, unsigned long flags)
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 new_stackp, struct task_struct *p, struct pt_regs *regs)
asmlinkage int sys_fork (struct pt_regs regs)
asmlinkage int sys_clone (struct pt_regs regs)
asmlinkage int sys_vfork (struct pt_regs regs)
asmlinkage int sys_execve (struct pt_regs regs)
int dump_fpu (struct pt_regs *regs, s390_fp_regs *fpregs)
void dump_thread (struct pt_regs *regs, struct user *dump)

Variables

spinlock_t semaphore_wake_lock = SPIN_LOCK_UNLOCKED


Define Documentation

#define __KERNEL_SYSCALLS__
 

Definition at line 18 of file s390/kernel/process.c.


Function Documentation

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

Definition at line 302 of file s390/kernel/process.c.

References __pa, _SEGMENT_TABLE, empty(), fprs, L, long, memset, PAGE_SIZE, save_fp_regs(), and USER_DS.

Here is the call graph for this function:

int dump_fpu struct pt_regs regs,
s390_fp_regs fpregs
 

Definition at line 429 of file s390/kernel/process.c.

References save_fp_regs(), and TRUE.

Here is the call graph for this function:

void dump_thread struct pt_regs regs,
struct user dump
 

Definition at line 438 of file s390/kernel/process.c.

References CMAGIC, current, dump_fpu(), long, user::magic, memcpy, PAGE_SHIFT, PAGE_SIZE, user::regs, user::start_code, user::start_stack, TASK_SIZE, user::u_dsize, user::u_ssize, and user::u_tsize.

Here is the call graph for this function:

void exit_thread void   ) 
 

Definition at line 287 of file s390/kernel/process.c.

void flush_thread void   ) 
 

Definition at line 291 of file s390/kernel/process.c.

References current.

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

Definition at line 257 of file s390/kernel/process.c.

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

Here is the call graph for this function:

void release_thread struct task_struct *  dead_task  ) 
 

Definition at line 298 of file s390/kernel/process.c.

asmlinkage void ret_from_fork void   ) 
 

Definition at line 52 of file s390/kernel/process.c.

References __sti, _WAIT_PSW_MASK, atomic_read, bh_active, bh_mask, check_pgt_cache(), current, do_bottom_half(), init_idle(), L, long, and schedule().

Here is the call graph for this function:

void show_regs struct pt_regs regs  ) 
 

Definition at line 231 of file s390/kernel/process.c.

References current, line, printk, smp_processor_id, and sprintf_regs().

Here is the call graph for this function:

static int sprintf_regs int  line,
char *  buff,
struct task_struct *  task,
struct pt_regs regs
[static]
 

Definition at line 114 of file s390/kernel/process.c.

References PSW_ADDR_MASK, PSW_PROBLEM_STATE, regno, sprintf(), and u32.

Referenced by show_regs(), and task_show_regs().

Here is the call graph for this function:

asmlinkage int sys_clone struct pt_regs  regs  ) 
 

Definition at line 359 of file s390/kernel/process.c.

References do_fork(), lock_kernel, ret, and unlock_kernel.

Here is the call graph for this function:

asmlinkage int sys_execve struct pt_regs  regs  ) 
 

Definition at line 394 of file s390/kernel/process.c.

References __asm__(), current, do_execve(), error, filename, getname(), lock_kernel, MACHINE_HAS_IEEE, out, and unlock_kernel.

Here is the call graph for this function:

asmlinkage int sys_fork struct pt_regs  regs  ) 
 

Definition at line 349 of file s390/kernel/process.c.

References do_fork(), lock_kernel, ret, SIGCHLD, and unlock_kernel.

Here is the call graph for this function:

asmlinkage int sys_idle void   ) 
 

Definition at line 97 of file s390/kernel/process.c.

References cpu_idle(), current, EPERM, and NULL.

Here is the call graph for this function:

asmlinkage int sys_vfork struct pt_regs  regs  ) 
 

Definition at line 385 of file s390/kernel/process.c.

References CLONE_VFORK, CLONE_VM, do_fork(), and SIGCHLD.

Here is the call graph for this function:

char* task_show_regs struct task_struct *  task,
char *  buffer
 

Definition at line 244 of file s390/kernel/process.c.

References len, line, and sprintf_regs().

Referenced by get_status().

Here is the call graph for this function:


Variable Documentation

spinlock_t semaphore_wake_lock = SPIN_LOCK_UNLOCKED
 

Definition at line 50 of file s390/kernel/process.c.