source: trunk/include/os2sel.h@ 5120

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

compile fix

File size: 894 bytes
RevLine 
[4077]1/* $Id: os2sel.h,v 1.8 2000-08-24 07:07:21 sandervl Exp $ */
[48]2/*
3 *
4 * Project Odin Software License can be found in LICENSE.TXT
5 *
6 */
7#ifndef __OS2SEL_H__
8#define __OS2SEL_H__
9
[4075]10#ifdef __WATCOMC__
11unsigned short GetFS(void);
12#pragma aux GetFS = \
13 "mov ax,fs" \
14 value [ax] \
15 parm nomemory;
[48]16
[4075]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
[4077]31unsigned short _System GetFS ();
32unsigned short _System RestoreOS2FS();
33void _System SetFS (unsigned short selector);
34unsigned short _System SetReturnFS (unsigned short selector);
[4075]35#endif
36
[2544]37//SvL: Checks if thread FS & exception structure are valid
[4077]38int _System CheckCurFS();
[2544]39
[537]40#endif //__OS2SEL_H__
Note: See TracBrowser for help on using the repository browser.