Add Dar, Dsisr and Trap registers for the PowerPC CONTEXT structure.

This commit is contained in:
Pierre d'Herbemont 2003-05-08 03:48:08 +00:00 committed by Alexandre Julliard
parent 3a10bf5890
commit bf01f050df
1 changed files with 8 additions and 1 deletions

View File

@ -892,7 +892,10 @@ typedef struct
DWORD Ctr;
DWORD ContextFlags;
DWORD Fill[3];
DWORD Dar; /* Fault registers for coredump */
DWORD Dsisr;
DWORD Trap; /* number of powerpc exception taken */
/* These are selected by CONTEXT_DEBUG_REGISTERS */
DWORD Dr0;
@ -1632,7 +1635,11 @@ extern inline struct _TEB * WINAPI NtCurrentTeb(void);
extern inline struct _TEB * WINAPI NtCurrentTeb(void)
{
struct _TEB *teb;
# ifdef __darwin__
__asm__("\tmr %0, r13" : "=r" (teb));
# else
__asm__("\tmr %0, 2" : "=r" (teb));
# endif
return teb;
}
#else