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

Go to the source code of this file.

Macros

#define SWITCH_ENTER(prv)   /* */
 
#define SWITCH_DO_LAZY_FPU(nxt)
 
#define prepare_arch_switch(next)
 
#define switch_to(prev, next, last)
 

Functions

void fpsave (unsigned long *fpregs, unsigned long *fsr, void *fpqueue, unsigned long *fpqdepth)
 
void synchronize_user_stack (void)
 

Variables

struct thread_infocurrent_set [NR_CPUS]
 

Macro Definition Documentation

#define prepare_arch_switch (   next)
Value:
do { \
__asm__ __volatile__( \
".globl\tflush_patch_switch\nflush_patch_switch:\n\t" \
"save %sp, -0x40, %sp; save %sp, -0x40, %sp; save %sp, -0x40, %sp\n\t" \
"save %sp, -0x40, %sp; save %sp, -0x40, %sp; save %sp, -0x40, %sp\n\t" \
"save %sp, -0x40, %sp\n\t" \
"restore; restore; restore; restore; restore; restore; restore"); \
} while(0)

Definition at line 37 of file switch_to_32.h.

#define SWITCH_DO_LAZY_FPU (   nxt)
Value:
do { \
if (last_task_used_math != (nxt)) \
(nxt)->thread.kregs->psr&=~PSR_EF; \
} while(0)

Definition at line 30 of file switch_to_32.h.

#define SWITCH_ENTER (   prv)    /* */

Definition at line 29 of file switch_to_32.h.

#define switch_to (   prev,
  next,
  last 
)

Definition at line 57 of file switch_to_32.h.

Function Documentation

void fpsave ( unsigned long fpregs,
unsigned long fsr,
void fpqueue,
unsigned long fpqdepth 
)
void synchronize_user_stack ( void  )

Definition at line 506 of file process_64.c.

Variable Documentation

struct thread_info* current_set[NR_CPUS]

Definition at line 312 of file smp.c.