1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:14:43 -07:00

runtime: update assembly var names after monotonic time changes

Change-Id: I721045120a4df41462c02252e2e5e8529ae2d694
Reviewed-on: https://go-review.googlesource.com/37303
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2017-02-20 22:54:39 -08:00
parent ea52f4b374
commit b6e0d4647f
4 changed files with 9 additions and 9 deletions

View File

@ -171,9 +171,9 @@ TEXT runtime·walltime(SB), 7, $32
MOVW 12(R13), R1
inreg:
MOVW R1, R2 // usec
MOVW R0, sec+0(FP)
MOVW R0, sec_lo+0(FP)
MOVW $0, R1
MOVW R1, loc+4(FP)
MOVW R1, sec_hi+4(FP)
MOVW $1000, R3
MUL R3, R2
MOVW R2, nsec+8(FP)

View File

@ -162,8 +162,8 @@ TEXT runtime·walltime(SB), NOSPLIT, $32
MOVL 12(SP), BX // nsec
// sec is in AX, nsec in BX
MOVL AX, sec+0(FP)
MOVL $0, sec+4(FP)
MOVL AX, sec_lo+0(FP)
MOVL $0, sec_hi+4(FP)
MOVL BX, nsec+8(FP)
RET

View File

@ -143,9 +143,9 @@ TEXT runtime·walltime(SB), NOSPLIT, $32
INT $0x80
MOVL 12(SP), AX // sec - l32
MOVL AX, sec+0(FP)
MOVL AX, sec_lo+0(FP)
MOVL 16(SP), AX // sec - h32
MOVL AX, sec+4(FP)
MOVL AX, sec_hi+4(FP)
MOVL 20(SP), BX // nsec
MOVL BX, nsec+8(FP)

View File

@ -455,9 +455,9 @@ loop:
ADDL DI, DX
// wintime*100 = DX:AX, subtract startNano and return
SUBL runtime·startNano+0(SB), AX
SBBL runtime·startNano+4(SB), DX
MOVL AX, ret+0(FP)
MOVL DX, ret+4(FP)
SBBL runtime·startNano+4(SB), DX
MOVL AX, ret_lo+0(FP)
MOVL DX, ret_hi+4(FP)
RET
TEXT time·now(SB),NOSPLIT,$0-20