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

Go to the source code of this file.

Macros

#define switch_to(prev, next, last)
 

Functions

asmlinkage void resume (void)
 

Macro Definition Documentation

#define switch_to (   prev,
  next,
  last 
)
Value:
do { \
register void *_prev __asm__ ("a0") = (prev); \
register void *_next __asm__ ("a1") = (next); \
register void *_last __asm__ ("d1"); \
__asm__ __volatile__("jbsr resume" \
: "=a" (_prev), "=a" (_next), "=d" (_last) \
: "0" (_prev), "1" (_next) \
: "d0", "d2", "d3", "d4", "d5"); \
(last) = _last; \
} while (0)

Definition at line 30 of file switch_to.h.

Function Documentation

asmlinkage void resume ( void  )