Changeset 21713 for branches/gcc-kmk/include/os2sel.h
- Timestamp:
- Oct 18, 2011, 8:24:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gcc-kmk/include/os2sel.h
r21350 r21713 49 49 } 50 50 51 static inline int RestoreOS2FS(void)51 static inline short RestoreOS2FS(void) 52 52 { 53 53 int __res, xx = 0x0150b; … … 60 60 } 61 61 62 static inline short SetReturnFS(unsigned short sel) 63 { 64 int __res; 65 66 __asm__ __volatile__( 67 "mov %%fs,%0 \n\t" 68 "mov %%eax,%%fs \n\t" 69 : "=&r" (__res) : "a" (sel)); 70 return(__res); 71 } 62 72 63 73 #else … … 67 77 void _System SetFS (unsigned short selector); 68 78 unsigned short _System SetReturnFS (unsigned short selector); 69 //SvL: Checks if thread FS & exception structure are valid70 int _System CheckCurFS(void);71 79 #endif 72 80 #endif 73 81 74 75 82 //SvL: Checks if thread FS & exception structure are valid 83 int _System CheckCurFS(void); 84 85 76 86 #ifdef __cplusplus 77 87 }
Note:
See TracChangeset
for help on using the changeset viewer.