diff options
Diffstat (limited to 'src/runtime/sys_windows_arm64.s')
| -rw-r--r-- | src/runtime/sys_windows_arm64.s | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/runtime/sys_windows_arm64.s b/src/runtime/sys_windows_arm64.s index 9fce9a8158..aa9ea7ed98 100644 --- a/src/runtime/sys_windows_arm64.s +++ b/src/runtime/sys_windows_arm64.s @@ -6,6 +6,7 @@ #include "go_tls.h" #include "textflag.h" #include "funcdata.h" +#include "time_windows.h" // Offsets into Thread Environment Block (pointer in R18) #define TEB_error 0x68 @@ -407,16 +408,6 @@ TEXT runtime·switchtothread(SB),NOSPLIT,$16-0 ADD $16, RSP 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 MOVB runtime·useQPCTime(SB), R0 CMP $0, R0 |
