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 <linux/thread_info.h>

Go to the source code of this file.

Macros

#define switch_to(prev, next, last)
 
#define finish_arch_switch(prev)
 

Functions

struct task_struct__switch_to (void *, void *)
 
void update_per_regs (struct task_struct *task)
 

Macro Definition Documentation

#define finish_arch_switch (   prev)
Value:
do { \
set_fs(current->thread.mm_segment); \
} while (0)

Definition at line 94 of file switch_to.h.

#define switch_to (   prev,
  next,
  last 
)
Value:
do { \
if (prev->mm) { \
save_fp_regs(&prev->thread.fp_regs); \
save_access_regs(&prev->thread.acrs[0]); \
save_ri_cb(prev->thread.ri_cb); \
} \
if (next->mm) { \
restore_fp_regs(&next->thread.fp_regs); \
restore_access_regs(&next->thread.acrs[0]); \
restore_ri_cb(next->thread.ri_cb, prev->thread.ri_cb); \
update_per_regs(next); \
} \
prev = __switch_to(prev,next); \
} while (0)

Definition at line 79 of file switch_to.h.

Function Documentation

struct task_struct* __switch_to ( void ,
void  
)
read
void update_per_regs ( struct task_struct task)

Definition at line 50 of file ptrace.c.