Commit bf01f050 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont Committed by Alexandre Julliard

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

parent 3a10bf58
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment