Add Dar, Dsisr and Trap registers for the PowerPC CONTEXT structure.
This commit is contained in:
parent
3a10bf5890
commit
bf01f050df
|
@ -892,7 +892,10 @@ typedef struct
|
||||||
DWORD Ctr;
|
DWORD Ctr;
|
||||||
|
|
||||||
DWORD ContextFlags;
|
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 */
|
/* These are selected by CONTEXT_DEBUG_REGISTERS */
|
||||||
DWORD Dr0;
|
DWORD Dr0;
|
||||||
|
@ -1632,7 +1635,11 @@ extern inline struct _TEB * WINAPI NtCurrentTeb(void);
|
||||||
extern inline struct _TEB * WINAPI NtCurrentTeb(void)
|
extern inline struct _TEB * WINAPI NtCurrentTeb(void)
|
||||||
{
|
{
|
||||||
struct _TEB *teb;
|
struct _TEB *teb;
|
||||||
|
# ifdef __darwin__
|
||||||
|
__asm__("\tmr %0, r13" : "=r" (teb));
|
||||||
|
# else
|
||||||
__asm__("\tmr %0, 2" : "=r" (teb));
|
__asm__("\tmr %0, 2" : "=r" (teb));
|
||||||
|
# endif
|
||||||
return teb;
|
return teb;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue