home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / MT / THREAD.S < prev   
Encoding:
Text File  |  1993-01-02  |  534 b   |  28 lines

  1. / thread.s (emx+gcc) -- Copyright (c) 1992-1993 by Eberhard Mattes
  2.  
  3. #if defined (__MT__)
  4.  
  5.         .globl  __thread
  6.         .globl  __tid
  7.  
  8.         .text
  9.  
  10.         .align  2, 0x90
  11.  
  12. __thread:
  13.         fs
  14.         movl    12, %eax                / ptib2
  15.         movl    0(%eax), %eax           / TID
  16.         movl    __thread_tab(,%eax,4), %eax
  17.         ret
  18.  
  19.         .align  2, 0x90
  20.  
  21. __tid:
  22.         fs
  23.         movl    12, %eax                / ptib2
  24.         movl    0(%eax), %eax           / TID
  25.         ret
  26.  
  27. #endif
  28.