1 #ifndef _X86_64_WIN32_OS_H
2 #define _X86_64_WIN32_OS_H
4 typedef struct os_context_t
{
5 CONTEXT
* win32_context
;
9 typedef intptr_t os_context_register_t
;
11 static inline os_context_t
*arch_os_get_context(void **void_context
)
13 return (os_context_t
*) *void_context
;
16 static inline DWORD
NT_GetLastError() {
17 return GetLastError();
20 unsigned long os_context_fp_control(os_context_t
*context
);
21 void os_restore_fp_control(os_context_t
*context
);
22 os_context_register_t
* os_context_fp_addr(os_context_t
*context
);
24 #endif /* _X86_64_WIN32_OS_H */