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 <asm/l1layout.h>
#include <asm/mem_map.h>

Go to the source code of this file.

Macros

#define prepare_to_switch()   do { } while(0)
 
#define switch_to(prev, next, last)
 

Functions

asmlinkage struct task_structresume (struct task_struct *prev, struct task_struct *next)
 

Macro Definition Documentation

#define prepare_to_switch ( )    do { } while(0)

Definition at line 11 of file switch_to.h.

#define switch_to (   prev,
  next,
  last 
)
Value:
do { \
memcpy (&task_thread_info(prev)->l1_task_info, L1_SCRATCH_TASK_INFO, \
memcpy (L1_SCRATCH_TASK_INFO, &task_thread_info(next)->l1_task_info, \
(last) = resume (prev, next); \
} while (0)

Definition at line 24 of file switch_to.h.

Function Documentation

asmlinkage struct task_struct* resume ( struct task_struct prev,
struct task_struct next 
)
read