Changeset 21916 for trunk/include/os2sel.h
- Timestamp:
- Dec 18, 2011, 10:28:22 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 bin 2 Makefile.inc 1 env.cmd 2 LocalConfig.kmk
-
-
Property svn:mergeinfo
set to
/branches/gcc-kmk merged eligible
- Property svn:ignore
-
trunk/include/os2sel.h
r21350 r21916 36 36 37 37 #ifndef __WATCOMC__ 38 #ifdef __EMX__ 38 #if defined(__GNUC__) 39 // note that we also define the exported variants of these in asmutil.asm 39 40 static inline unsigned short GetFS(void) 40 41 { … … 49 50 } 50 51 51 static inline int RestoreOS2FS(void)52 static inline short RestoreOS2FS(void) 52 53 { 53 54 int __res, xx = 0x0150b; … … 60 61 } 61 62 63 static inline short SetReturnFS(unsigned short sel) 64 { 65 int __res; 66 67 __asm__ __volatile__( 68 "mov %%fs,%0 \n\t" 69 "mov %%eax,%%fs \n\t" 70 : "=&r" (__res) : "a" (sel)); 71 return(__res); 72 } 62 73 63 74 #else … … 67 78 void _System SetFS (unsigned short selector); 68 79 unsigned short _System SetReturnFS (unsigned short selector); 69 //SvL: Checks if thread FS & exception structure are valid70 int _System CheckCurFS(void);71 80 #endif 72 81 #endif 73 82 74 75 83 //SvL: Checks if thread FS & exception structure are valid 84 int _System CheckCurFS(void); 85 86 76 87 #ifdef __cplusplus 77 88 }
Note:
See TracChangeset
for help on using the changeset viewer.