/* $Id: os2sel.h,v 1.8 2000-08-24 07:07:21 sandervl Exp $ */ /* * * Project Odin Software License can be found in LICENSE.TXT * */ #ifndef __OS2SEL_H__ #define __OS2SEL_H__ #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 (); unsigned short _System RestoreOS2FS(); 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(); #endif //__OS2SEL_H__