]> Cypherpunks repositories - gostls13.git/commit
runtime: add upper half and carry bit with zero
authorMichael Pratt <mpratt@google.com>
Tue, 9 Nov 2021 16:35:52 +0000 (11:35 -0500)
committerMichael Pratt <mpratt@google.com>
Tue, 9 Nov 2021 17:18:08 +0000 (17:18 +0000)
commit15a54d627ca7a0bdf45a3d1862b35a892024cacc
treeb632b08d5a6ddc2f0f04bf14144f73bbd37b6c7a
parent90f47dbba635802bb009404e321fa4759ac76d20
runtime: add upper half and carry bit with zero

https://golang.org/cl/246763 accidentally changed this from upper + 0 +
carry to upper + old vdsoSP + carry.

The old value of vdsoPC is usually zero, so this typically works.
However, the reentrant case will have a non-zero value, resulting in a
bogus returned time.

Fixes #49481

Change-Id: I0110b84277bf911804cb0ff8097aebf1b7eb100a
Reviewed-on: https://go-review.googlesource.com/c/go/+/362674
Trust: Michael Pratt <mpratt@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/sys_linux_arm.s