From e51246c8819f16cd78d3da01162ca14b432d30bc Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 27 Apr 2021 10:58:54 -0700 Subject: runtime: consolidate Windows time constants into single copy Change-Id: I1a583d3da9cca4ac51f3fec9b508b7638b452d60 Reviewed-on: https://go-review.googlesource.com/c/go/+/314270 Trust: Ian Lance Taylor Run-TryBot: Ian Lance Taylor Reviewed-by: Michael Knyszek --- src/runtime/sys_windows_arm.s | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/runtime/sys_windows_arm.s') diff --git a/src/runtime/sys_windows_arm.s b/src/runtime/sys_windows_arm.s index 6234203798..7676bc1ff8 100644 --- a/src/runtime/sys_windows_arm.s +++ b/src/runtime/sys_windows_arm.s @@ -5,6 +5,7 @@ #include "go_asm.h" #include "go_tls.h" #include "textflag.h" +#include "time_windows.h" // Note: For system ABI, R0-R3 are args, R4-R11 are callee-save. @@ -341,16 +342,6 @@ TEXT runtime·read_tls_fallback(SB),NOSPLIT|NOFRAME,$0 MOVW R0, (R0) RET -// See https://wrkhpi.wordpress.com/2007/08/09/getting-os-information-the-kuser_shared_data-structure/ -// Archived copy at: -// http://web.archive.org/web/20210411000829/https://wrkhpi.wordpress.com/2007/08/09/getting-os-information-the-kuser_shared_data-structure/ -// Must read hi1, then lo, then hi2. The snapshot is valid if hi1 == hi2. -#define _INTERRUPT_TIME 0x7ffe0008 -#define _SYSTEM_TIME 0x7ffe0014 -#define time_lo 0 -#define time_hi1 4 -#define time_hi2 8 - TEXT runtime·nanotime1(SB),NOSPLIT|NOFRAME,$0-8 MOVW $0, R0 MOVB runtime·useQPCTime(SB), R0 -- cgit v1.3-6-g1900