| Rev | Line |   | 
|---|
| [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__
 | 
|---|
 | 11 | unsigned short GetFS(void);
 | 
|---|
 | 12 | #pragma aux GetFS = \
 | 
|---|
 | 13 |    "mov  ax,fs" \
 | 
|---|
 | 14 |    value [ax] \
 | 
|---|
 | 15 |    parm nomemory;
 | 
|---|
| [48] | 16 | 
 | 
|---|
| [4075] | 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
 | 
|---|
| [4077] | 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);
 | 
|---|
| [4075] | 35 | #endif
 | 
|---|
 | 36 | 
 | 
|---|
| [2544] | 37 | //SvL: Checks if thread FS & exception structure are valid
 | 
|---|
| [4077] | 38 | int            _System CheckCurFS();
 | 
|---|
| [2544] | 39 | 
 | 
|---|
| [537] | 40 | #endif //__OS2SEL_H__
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.