Ignore:
Timestamp:
Jan 6, 2003, 2:24:23 PM (23 years ago)
Author:
sandervl
Message:

PF: header updates

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 phaller Exp $ */
     1/* $Id: os2sel.h,v 1.10 2003-01-06 13:24:20 sandervl Exp $ */
    22/*
    33 *
     
    3333   value [bx] \
    3434   modify nomemory exact [ax];
     35#endif
     36
     37#ifdef  __EMX__
     38extern inline unsigned short GetFS(void)
     39{
     40 asm volatile (
     41    "mov %eax, %fs      \n\t"
     42 );
     43}
     44
     45extern 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
     53extern 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
    3562
    3663#else
     
    4067void           _System SetFS       (unsigned short selector);
    4168unsigned short _System SetReturnFS (unsigned short selector);
     69//SvL: Checks if thread FS & exception structure are valid
     70int            _System CheckCurFS(void);
    4271#endif
    4372
    44 //SvL: Checks if thread FS & exception structure are valid
    45 int            _System CheckCurFS(void);
    4673 
    4774 
Note: See TracChangeset for help on using the changeset viewer.