diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-03-20 22:01:09 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-03-20 22:01:09 +0400 |
commit | 8ea7221511d3ca28d63f030cb276690417a76c4e (patch) | |
tree | 490b197b2065f54160e6e281bde888e80a0723ed /winsup/cygwin/ntdll.h | |
parent | 1fb6667f1ca346ab7f845b1adcb146a7d6e243fc (diff) |
* ntdll.h (SharedUserData): Add volatile qualifier. This fixes a
possible infinite loop in hires_ms::timeGetTime_ns.
Diffstat (limited to 'winsup/cygwin/ntdll.h')
-rw-r--r-- | winsup/cygwin/ntdll.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/ntdll.h b/winsup/cygwin/ntdll.h index d921867bd..7eee720aa 100644 --- a/winsup/cygwin/ntdll.h +++ b/winsup/cygwin/ntdll.h @@ -1106,9 +1106,10 @@ typedef VOID (APIENTRY *PTIMER_APC_ROUTINE)(PVOID, ULONG, ULONG); #ifdef __cplusplus /* This is the mapping of the KUSER_SHARED_DATA structure into the 32 bit - user address space. We need it here to access the current DismountCount. */ -static KUSER_SHARED_DATA &SharedUserData - = *(volatile PKUSER_SHARED_DATA) 0x7ffe0000; + user address space. We need it here to access the current DismountCount + and InterruptTime. */ +static volatile KUSER_SHARED_DATA &SharedUserData + = *(volatile KUSER_SHARED_DATA *) 0x7ffe0000; extern "C" { |