Commit b6e0d464 authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

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: default avatarIan Lance Taylor <iant@golang.org>
parent ea52f4b3
......@@ -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)
......
......@@ -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
......
......@@ -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)
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment