Changeset 9631 for trunk/include/os2sel.h
- Timestamp:
- Jan 6, 2003, 2:24:23 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/os2sel.h
r6997 r9631 1 /* $Id: os2sel.h,v 1. 9 2001-10-10 21:22:13 phallerExp $ */1 /* $Id: os2sel.h,v 1.10 2003-01-06 13:24:20 sandervl Exp $ */ 2 2 /* 3 3 * … … 33 33 value [bx] \ 34 34 modify nomemory exact [ax]; 35 #endif 36 37 #ifdef __EMX__ 38 extern inline unsigned short GetFS(void) 39 { 40 asm volatile ( 41 "mov %eax, %fs \n\t" 42 ); 43 } 44 45 extern inline void SetFS(unsigned short sel) 46 { 47 asm volatile ( 48 "mov %eax,%esp \n\t" 49 "mov %fs, %eax \n\t" 50 ); 51 } 52 53 extern inline unsigned short RestoreOS2FS(void) 54 { 55 asm volatile ( 56 "push 0x150b \n\t" 57 "mov %ax, %fs \n\t" 58 "pop %fs" 59 ); 60 } 61 35 62 36 63 #else … … 40 67 void _System SetFS (unsigned short selector); 41 68 unsigned short _System SetReturnFS (unsigned short selector); 69 //SvL: Checks if thread FS & exception structure are valid 70 int _System CheckCurFS(void); 42 71 #endif 43 72 44 //SvL: Checks if thread FS & exception structure are valid45 int _System CheckCurFS(void);46 73 47 74
Note:
See TracChangeset
for help on using the changeset viewer.