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__
|
---|
11 | unsigned short GetFS(void);
|
---|
12 | #pragma aux GetFS = \
|
---|
13 | "mov ax,fs" \
|
---|
14 | value [ax] \
|
---|
15 | parm nomemory;
|
---|
16 |
|
---|
17 | void SetFS(unsigned short sel);
|
---|
18 | #pragma aux SetFS = \
|
---|
19 | "mov fs,ax" \
|
---|
20 | parm [ax];
|
---|
21 |
|
---|
22 | unsigned 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
|
---|
31 | unsigned short SYSTEM GetFS ();
|
---|
32 | unsigned short SYSTEM RestoreOS2FS();
|
---|
33 | void SYSTEM SetFS (unsigned short selector);
|
---|
34 | unsigned short SYSTEM SetReturnFS (unsigned short selector);
|
---|
35 | #endif
|
---|
36 |
|
---|
37 | //SvL: Checks if thread FS & exception structure are valid
|
---|
38 | int SYSTEM CheckCurFS();
|
---|
39 |
|
---|
40 | #endif //__OS2SEL_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.