/* $Id: os2sel.h,v 1.9 2001-10-10 21:22:13 phaller Exp $ */ /* * * Project Odin Software License can be found in LICENSE.TXT * */ #ifndef __OS2SEL_H__ #define __OS2SEL_H__ #ifdef __cplusplus extern "C" { #endif #ifdef __WATCOMC__ unsigned short GetFS(void); #pragma aux GetFS = \ "mov ax,fs" \ value [ax] \ parm nomemory; void SetFS(unsigned short sel); #pragma aux SetFS = \ "mov fs,ax" \ parm [ax]; unsigned short RestoreOS2FS(void); #pragma aux RestoreOS2FS = \ "mov bx, fs" \ "mov ax, 150bh" \ "mov fs, ax" \ value [bx] \ modify nomemory exact [ax]; #else unsigned short _System GetFS (void); unsigned short _System RestoreOS2FS(void); void _System SetFS (unsigned short selector); unsigned short _System SetReturnFS (unsigned short selector); #endif //SvL: Checks if thread FS & exception structure are valid int _System CheckCurFS(void); #ifdef __cplusplus } #endif #endif //__OS2SEL_H__