Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
process.c File Reference
#include <linux/module.h>
#include <linux/unistd.h>
#include <linux/user.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/tick.h>
#include <linux/fs.h>
#include <linux/err.h>
#include <asm/blackfin.h>
#include <asm/fixed_code.h>
#include <asm/mem_map.h>
#include <asm/irq.h>

Go to the source code of this file.

Macros

#define ASYNC_ENABLED(bnum, bctlnum)
 

Functions

asmlinkage void ret_from_fork (void)
 
 EXPORT_SYMBOL (pm_idle)
 
 EXPORT_SYMBOL (pm_power_off)
 
void cpu_idle (void)
 
void kernel_thread_helper (void)
 
 __asm__ (".section .text\n"".align 4\n""_kernel_thread_helper:\n\t""\tsp += -12;\n\t""\tr0 = r1;\n\t""\tcall (p1);\n\t""\tcall _do_exit;\n"".previous")
 
pid_t kernel_thread (int(*fn)(void *), void *arg, unsigned long flags)
 
 EXPORT_SYMBOL (kernel_thread)
 
void start_thread (struct pt_regs *regs, unsigned long new_ip, unsigned long new_sp)
 
 EXPORT_SYMBOL_GPL (start_thread)
 
void flush_thread (void)
 
asmlinkage int bfin_vfork (struct pt_regs *regs)
 
asmlinkage int bfin_clone (struct pt_regs *regs)
 
int copy_thread (unsigned long clone_flags, unsigned long usp, unsigned long topstk, struct task_struct *p, struct pt_regs *regs)
 
asmlinkage int sys_execve (const char __user *name, const char __user *const __user *argv, const char __user *const __user *envp)
 
unsigned long get_wchan (struct task_struct *p)
 
void finish_atomic_sections (struct pt_regs *regs)
 
int bfin_mem_access_type (unsigned long addr, unsigned long size)
 

Variables

voidcurrent_l1_stack_save
 
int nr_l1stack_tasks
 
voidl1_stack_base
 
unsigned long l1_stack_len
 
void(* pm_idle )(void) = NULL
 
void(* pm_power_off )(void) = NULL
 

Macro Definition Documentation

#define ASYNC_ENABLED (   bnum,
  bctlnum 
)
Value:
({ \
(bfin_read_EBIU_AMGCTL() & 0xe) < ((bnum + 1) << 1) ? 0 : \
bfin_read_EBIU_AMBCTL##bctlnum() & B##bnum##RDYEN ? 0 : \
1; \
})

Definition at line 337 of file process.c.

Function Documentation

__asm__ ( )
asmlinkage int bfin_clone ( struct pt_regs regs)

Definition at line 170 of file process.c.

int bfin_mem_access_type ( unsigned long  addr,
unsigned long  size 
)

bfin_mem_access_type() - what kind of memory access is required : the address to check : number of bytes needed

Returns
: <0 is error, >=0 is BFIN_MEM_ACCESS_xxx enum (see above)

Definition at line 391 of file process.c.

asmlinkage int bfin_vfork ( struct pt_regs regs)

Definition at line 164 of file process.c.

int copy_thread ( unsigned long  clone_flags,
unsigned long  usp,
unsigned long  topstk,
struct task_struct p,
struct pt_regs regs 
)

Definition at line 191 of file process.c.

void cpu_idle ( void  )

Definition at line 80 of file process.c.

EXPORT_SYMBOL ( pm_idle  )
EXPORT_SYMBOL ( pm_power_off  )
EXPORT_SYMBOL ( kernel_thread  )
EXPORT_SYMBOL_GPL ( start_thread  )
void finish_atomic_sections ( struct pt_regs regs)

Definition at line 251 of file process.c.

void flush_thread ( void  )

Definition at line 160 of file process.c.

unsigned long get_wchan ( struct task_struct p)

Definition at line 228 of file process.c.

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

Definition at line 119 of file process.c.

void kernel_thread_helper ( void  )
asmlinkage void ret_from_fork ( void  )

Definition at line 375 of file process.c.

void start_thread ( struct pt_regs regs,
unsigned long  new_ip,
unsigned long  new_sp 
)

Definition at line 144 of file process.c.

asmlinkage int sys_execve ( const char __user name,
const char __user *const __user argv,
const char __user *const __user envp 
)

Definition at line 211 of file process.c.

Variable Documentation

void* current_l1_stack_save

Definition at line 29 of file process.c.

void* l1_stack_base

Definition at line 39 of file process.c.

unsigned long l1_stack_len

Definition at line 40 of file process.c.

int nr_l1stack_tasks

Definition at line 34 of file process.c.

void(* pm_idle)(void) = NULL
default

Definition at line 45 of file process.c.

void(* pm_power_off)(void) = NULL

Definition at line 48 of file process.c.