/shark/trunk/oslib/xlib/ctxsw.c |
---|
25,7 → 25,7 |
#include <ll/i386/hw-func.h> |
#include <ll/i386/tss-ctx.h> |
FILE(Context-Switch); |
FILE(Context - Switch); |
extern unsigned short int currCtx; |
#ifdef __VIRCSW__ |
37,31 → 37,31 |
void ll_context_to(CONTEXT c) |
{ |
#ifdef __VIRCSW__ |
currCtx = c; |
if (activeInt == 0) { |
context_load(c); |
} |
currCtx = c; |
if (activeInt == 0) { |
context_load(c); |
} |
#else |
currCtx = c; |
context_load(c); |
currCtx = c; |
context_load(c); |
#endif |
} |
CONTEXT ll_context_from(void) |
{ |
#ifdef __VIRCSW__ |
return currCtx; |
return currCtx; |
#else |
return context_save(); |
return context_save(); |
#endif |
} |
CONTEXT ll_context_save(void) |
{ |
return currCtx; |
return currCtx; |
} |
void ll_context_load(CONTEXT c) |
{ |
currCtx = c; |
context_load(c); |
currCtx = c; |
context_load(c); |
} |