/ threadid.s (emx+gcc) -- Copyright (c) 1993 by Eberhard Mattes

#if defined (__MT__)

        .globl  ___threadid

        .text

        .align  2, 0x90

___threadid:
        fs
        movl    12, %eax                / ptib2
        ret

#endif
