Changeset 9735 for trunk/include/os2sel.h
- Timestamp:
- Jan 28, 2003, 5:20:43 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/os2sel.h
r9631 r9735 1 /* $Id: os2sel.h,v 1.1 0 2003-01-06 13:24:20sandervl Exp $ */1 /* $Id: os2sel.h,v 1.11 2003-01-28 16:20:43 sandervl Exp $ */ 2 2 /* 3 3 * … … 39 39 { 40 40 asm volatile ( 41 "mov % eax, %fs\n\t"41 "mov %fs, %ax \n\t" 42 42 ); 43 43 } … … 45 45 extern inline void SetFS(unsigned short sel) 46 46 { 47 asm volatile ( 48 "mov %eax,%esp \n\t" 49 "mov %fs, %eax \n\t" 50 ); 47 __asm__ __volatile__("movw %%ax,%%fs" : : "a" (sel)); 51 48 } 52 49 … … 54 51 { 55 52 asm volatile ( 56 "push 0x150b\n\t"57 "mov %ax, %fs\n\t"53 "push $0x0150b \n\t" 54 "movw %fs,%ax \n\t" 58 55 "pop %fs" 59 56 );
Note:
See TracChangeset
for help on using the changeset viewer.