Changeset 2141 for trunk/src


Ignore:
Timestamp:
Dec 19, 1999, 6:49:38 PM (26 years ago)
Author:
sandervl
Message:

EB's GetThreadContext update

Location:
trunk/src/kernel32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/exceptutil.asm

    r2115 r2141  
    1 ; $Id: exceptutil.asm,v 1.3 1999-12-18 17:17:54 sandervl Exp $
     1; $Id: exceptutil.asm,v 1.4 1999-12-19 17:49:38 sandervl Exp $
    22
    33;/*
     
    201201getSS   endp
    202202
     203        PUBLIC getES
     204getES   proc near
     205        mov     eax, es
     206        ret
     207getES   endp
     208
     209        PUBLIC getGS
     210getGS   proc near
     211        mov     eax, gs
     212        ret
     213getGS   endp
     214
    203215        PUBLIC RestoreOS2FS
    204216RestoreOS2FS proc near
  • trunk/src/kernel32/exceptutil.h

    r2123 r2141  
    1 /* $Id: exceptutil.h,v 1.4 1999-12-18 20:03:14 sandervl Exp $ */
     1/* $Id: exceptutil.h,v 1.5 1999-12-19 17:49:38 sandervl Exp $ */
    22
    33/*
     
    3434USHORT getDS();
    3535USHORT getCS();
     36USHORT getSS();
     37USHORT getES();
     38USHORT getFS();
     39USHORT getGS();
    3640
    3741#ifdef __cplusplus
  • trunk/src/kernel32/thread.cpp

    r2115 r2141  
    1 /* $Id: thread.cpp,v 1.19 1999-12-18 17:17:55 sandervl Exp $ */
     1/* $Id: thread.cpp,v 1.20 1999-12-19 17:49:38 sandervl Exp $ */
    22
    33/*
     
    143143BOOL WIN32API GetThreadContext(HANDLE hThread, PCONTEXT lpContext)
    144144{
    145  USHORT cs, ds;
    146 
    147145  dprintf(("GetThreadContext NOT IMPLEMENTED!! (TRUE)\n"));
    148146  memset(lpContext, 0, sizeof(CONTEXT));
    149147
    150148  /* make up some plausible values for segment registers */
    151   cs = getCS();
    152   ds = getDS();
    153   lpContext->SegCs   = cs;
    154   lpContext->SegDs   = ds;
    155   lpContext->SegEs   = ds;
    156   lpContext->SegGs   = ds;
    157   lpContext->SegSs   = ds;
    158   lpContext->SegFs   = ds;
     149  lpContext->SegCs   = getCS();
     150  lpContext->SegDs   = getDS();
     151  lpContext->SegSs   = getSS();
     152  lpContext->SegEs   = getES();
     153  lpContext->SegGs   = getGS();
     154  lpContext->SegFs   = GetFS();
    159155
    160156  return TRUE;
Note: See TracChangeset for help on using the changeset viewer.