Changeset 295


Ignore:
Timestamp:
Jun 16, 2011, 1:38:42 PM (14 years ago)
Author:
dmik
Message:

jdk: Use the respective Odin call to get access to the thread's NT_TIB block instead of accessing the FS:[0] structure directly as this makes the code independent on whether Odin switches FS from OS/2 to Win32 or not.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/src/windows/hpi/src/threads_md.c

    r278 r295  
    6868#ifndef _WIN64
    6969    PNT_TIB nt_tib;
     70#ifdef __WIN32OS2__
     71    struct _TEB  *WINAPI GetThreadTEB(void);
     72    nt_tib = (PNT_TIB)GetThreadTEB();
     73#else /* __WIN32OS2__ */
    7074#ifdef __EMX__
    7175    asm("movl %%fs:0x18, %%eax\n\t"
     
    7882    }
    7983#endif /* __EMX__ */
     84#endif /* __WIN32OS2__ */
    8085    tid->nt_tib = nt_tib;
    8186#else
Note: See TracChangeset for help on using the changeset viewer.