/ threadid.s (emx+gcc) -- Copyright (c) 1993-1996 by Eberhard Mattes

#include <emx/asm386.h>

        .globl  ___threadid

        .text

        ALIGN

___threadid:
        fs
        movl    12, %eax                /* ptib2 */
        EPILOGUE(__threadid)
