]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix nanotime1 on windows/arm
authorqmuntal <quimmuntal@gmail.com>
Thu, 22 Aug 2024 13:02:49 +0000 (15:02 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Thu, 22 Aug 2024 17:12:38 +0000 (17:12 +0000)
nanotime1 is broken on windows/arm since CL 526358, which
unintentionally removed a necessary instruction. It hasn't been
noticed till now because the there is no windows/arm builder.

This CL restores the instruction.

Fixes #68996.

Change-Id: I52ef6891a3bd8e608b8538f456d181e08f93efaa
Reviewed-on: https://go-review.googlesource.com/c/go/+/607776
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/runtime/sys_windows_arm.s

index d194899d50898d3efd5bebfb5149b15cc1b0213c..99f33cf07d345728b62741494de1017a31f4a15f 100644 (file)
@@ -205,6 +205,7 @@ TEXT runtime·read_tls_fallback(SB),NOSPLIT,$0
        RET
 
 TEXT runtime·nanotime1(SB),NOSPLIT,$0-8
+       MOVW    $_INTERRUPT_TIME, R3
 loop:
        MOVW    time_hi1(R3), R1
        DMB     MB_ISH