source: trunk/include/os2sel.h@ 4075

Last change on this file since 4075 was 4075, checked in by sandervl, 25 years ago

updates for watcom

File size: 889 bytes
Line 
1/* $Id: os2sel.h,v 1.7 2000-08-23 18:05:54 sandervl Exp $ */
2/*
3 *
4 * Project Odin Software License can be found in LICENSE.TXT
5 *
6 */
7#ifndef __OS2SEL_H__
8#define __OS2SEL_H__
9
10#ifdef __WATCOMC__
11unsigned short GetFS(void);
12#pragma aux GetFS = \
13 "mov ax,fs" \
14 value [ax] \
15 parm nomemory;
16
17void SetFS(unsigned short sel);
18#pragma aux SetFS = \
19 "mov fs,ax" \
20 parm [ax];
21
22unsigned short RestoreOS2FS(void);
23#pragma aux RestoreOS2FS = \
24 "mov bx, fs" \
25 "mov ax, 150bh" \
26 "mov fs, ax" \
27 value [bx] \
28 modify nomemory exact [ax];
29
30#else
31unsigned short SYSTEM GetFS ();
32unsigned short SYSTEM RestoreOS2FS();
33void SYSTEM SetFS (unsigned short selector);
34unsigned short SYSTEM SetReturnFS (unsigned short selector);
35#endif
36
37//SvL: Checks if thread FS & exception structure are valid
38int SYSTEM CheckCurFS();
39
40#endif //__OS2SEL_H__
Note: See TracBrowser for help on using the repository browser.