Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
switch_to.h File Reference
#include <arch/sim_def.h>

Go to the source code of this file.

Macros

#define CALLEE_SAVED_FIRST_REG   30
 
#define CALLEE_SAVED_REGS_COUNT   24 /* r30 to r52, plus an empty to align */
 
#define prepare_arch_switch(next)   _prepare_arch_switch(next)
 
#define switch_to(prev, next, last)   ((last) = _switch_to((prev), (next)))
 
#define finish_arch_switch(prev)
 

Functions

void _prepare_arch_switch (struct task_struct *next)
 
struct task_struct_switch_to (struct task_struct *prev, struct task_struct *next)
 
struct task_struct__switch_to (struct task_struct *prev, struct task_struct *next, unsigned long new_system_save_k_0)
 
unsigned long get_switch_to_pc (void)
 
void ret_from_fork (void)
 
struct task_structsim_notify_fork (struct task_struct *prev)
 

Macro Definition Documentation

#define CALLEE_SAVED_FIRST_REG   30

Definition at line 26 of file switch_to.h.

#define CALLEE_SAVED_REGS_COUNT   24 /* r30 to r52, plus an empty to align */

Definition at line 27 of file switch_to.h.

#define finish_arch_switch (   prev)
Value:
do { \
if (unlikely((prev)->state == TASK_DEAD)) \
if (current->mm == NULL && !kstack_hash && \
current_thread_info()->homecache_cpu != smp_processor_id()) \
homecache_migrate_kthread(); \
} while (0)

Definition at line 57 of file switch_to.h.

#define prepare_arch_switch (   next)    _prepare_arch_switch(next)

Definition at line 36 of file switch_to.h.

#define switch_to (   prev,
  next,
  last 
)    ((last) = _switch_to((prev), (next)))

Definition at line 40 of file switch_to.h.

Function Documentation

struct task_struct* __switch_to ( struct task_struct prev,
struct task_struct next,
unsigned long  new_system_save_k_0 
)
read
void _prepare_arch_switch ( struct task_struct next)

Definition at line 457 of file process.c.

struct task_struct* _switch_to ( struct task_struct prev,
struct task_struct next 
)
read

Definition at line 482 of file process.c.

unsigned long get_switch_to_pc ( void  )
void ret_from_fork ( void  )

Definition at line 375 of file process.c.

struct task_struct* sim_notify_fork ( struct task_struct prev)
read

Definition at line 280 of file process.c.