File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ environment:
12
12
- host : i686-pc-windows-gnu
13
13
channel : nightly
14
14
- host : x86_64-pc-windows-gnu
15
- channel : 1.33 .0
15
+ channel : 1.64 .0
16
16
- host : i686-pc-windows-gnu
17
- channel : 1.33 .0
17
+ channel : 1.64 .0
18
18
19
19
install :
20
20
- appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe
Original file line number Diff line number Diff line change 1
1
use core:: mem:: uninitialized;
2
+ #[ cfg( any( target_arch = "x86_64" , target_arch = "aarch64" ) ) ]
3
+ use core:: ptr:: addr_of;
2
4
use core:: ptr:: read_volatile;
3
5
#[ cfg( target_arch = "x86" ) ]
4
6
use core:: sync:: atomic:: spin_loop_hint;
@@ -2780,7 +2782,7 @@ pub const USER_SHARED_DATA: *const KUSER_SHARED_DATA = 0x7ffe0000 as *const _;
2780
2782
pub unsafe fn NtGetTickCount64 ( ) -> ULONGLONG {
2781
2783
let mut tick_count: ULARGE_INTEGER = uninitialized ( ) ;
2782
2784
#[ cfg( any( target_arch = "x86_64" , target_arch = "aarch64" ) ) ] {
2783
- * tick_count. QuadPart_mut ( ) = read_volatile ( & ( * USER_SHARED_DATA ) . u . TickCountQuad ) ;
2785
+ * tick_count. QuadPart_mut ( ) = read_volatile ( addr_of ! ( ( * USER_SHARED_DATA ) . u. TickCountQuad ) ) ;
2784
2786
}
2785
2787
#[ cfg( target_arch = "x86" ) ] {
2786
2788
loop {
@@ -2804,7 +2806,7 @@ pub unsafe fn NtGetTickCount64() -> ULONGLONG {
2804
2806
#[ inline]
2805
2807
pub unsafe fn NtGetTickCount ( ) -> ULONG {
2806
2808
#[ cfg( any( target_arch = "x86_64" , target_arch = "aarch64" ) ) ] {
2807
- ( ( read_volatile ( & ( * USER_SHARED_DATA ) . u . TickCountQuad )
2809
+ ( ( read_volatile ( addr_of ! ( ( * USER_SHARED_DATA ) . u. TickCountQuad ) )
2808
2810
* ( * USER_SHARED_DATA ) . TickCountMultiplier as u64 ) >> 24 ) as u32
2809
2811
}
2810
2812
#[ cfg( target_arch = "x86" ) ] {
You can’t perform that action at this time.
0 commit comments