---
 mingw-w64-headers/include/winnt.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/mingw-w64-headers/include/winnt.h 
b/mingw-w64-headers/include/winnt.h
index 9107a36..f48cb30 100644
--- a/mingw-w64-headers/include/winnt.h
+++ b/mingw-w64-headers/include/winnt.h
@@ -8395,6 +8395,17 @@ typedef DWORD (WINAPI 
*PRTL_RUN_ONCE_INIT_FN)(PRTL_RUN_ONCE, PVOID, PVOID *);
     FORCEINLINE PVOID GetFiberData (VOID) { return *(PVOID *)GetCurrentFiber 
(); }
 #endif /* arm */
 
+#if defined (__aarch64__) && !defined (__WIDL__)
+    struct _TEB *NtCurrentTeb (VOID);
+    PVOID GetCurrentFiber (VOID);
+    PVOID GetFiberData (VOID);
+    FORCEINLINE struct _TEB *NtCurrentTeb(VOID) { struct _TEB *teb;
+    __asm ("mov %0, x18" : "=r" (teb));
+    return teb; }
+    FORCEINLINE PVOID GetCurrentFiber(VOID) { return 
(PVOID)(((PNT_TIB)NtCurrentTeb())->FiberData); }
+    FORCEINLINE PVOID GetFiberData (VOID) { return *(PVOID *)GetCurrentFiber 
(); }
+#endif /* aarch64 */
+
 #ifndef _NTTMAPI_
 #define _NTTMAPI_
 
-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to