Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1078)

Delta Between Two Patch Sets: src/pkg/runtime/linux/amd64/sys.s

Issue 5392041: code review 5392041: time: new Time, Duration, ZoneInfo types (Closed)
Left Patch Set: Created 13 years, 4 months ago
Right Patch Set: diff -r 3c286b9b2206 https://go.googlecode.com/hg/ Created 13 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/linux/386/sys.s ('k') | src/pkg/runtime/linux/arm/sys.s » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // 5 //
6 // System calls and other sys.stuff for AMD64, Linux 6 // System calls and other sys.stuff for AMD64, Linux
7 // 7 //
8 8
9 #include "amd64/asm.h" 9 #include "amd64/asm.h"
10 10
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 RET 86 RET
87 87
88 TEXT runtime·mincore(SB),7,$0-24 88 TEXT runtime·mincore(SB),7,$0-24
89 MOVQ 8(SP), DI 89 MOVQ 8(SP), DI
90 MOVQ 16(SP), SI 90 MOVQ 16(SP), SI
91 MOVQ 24(SP), DX 91 MOVQ 24(SP), DX
92 MOVL $27, AX // syscall entry 92 MOVL $27, AX // syscall entry
93 SYSCALL 93 SYSCALL
94 RET 94 RET
95 95
96 // func now() (sec int64, nsec int32)
97 TEXT time·now(SB), 7, $32
98 LEAQ 8(SP), DI
99 MOVQ $0, SI
100 MOVQ $0xffffffffff600000, AX
101 CALL AX
102 MOVQ 8(SP), AX // sec
103 MOVL 16(SP), DX // usec
104
105 // sec is in AX, usec in DX
106 MOVQ AX, sec+0(FP)
107 IMULQ $1000, DX
108 MOVL DX, nsec+8(FP)
109 RET
110
96 TEXT runtime·nanotime(SB), 7, $32 111 TEXT runtime·nanotime(SB), 7, $32
97 LEAQ 8(SP), DI 112 LEAQ 8(SP), DI
98 MOVQ $0, SI 113 MOVQ $0, SI
99 MOVQ $0xffffffffff600000, AX 114 MOVQ $0xffffffffff600000, AX
100 CALL AX 115 CALL AX
101 MOVQ 8(SP), AX // sec 116 MOVQ 8(SP), AX // sec
102 MOVL 16(SP), DX // usec 117 MOVL 16(SP), DX // usec
103 118
104 // sec is in AX, usec in DX 119 // sec is in AX, usec in DX
105 // return nsec in AX 120 // return nsec in AX
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 SYSCALL 276 SYSCALL
262 CMPQ AX, $0xfffffffffffff001 277 CMPQ AX, $0xfffffffffffff001
263 JLS 2(PC) 278 JLS 2(PC)
264 CALL runtime·notok(SB) 279 CALL runtime·notok(SB)
265 RET 280 RET
266 281
267 TEXT runtime·osyield(SB),7,$0 282 TEXT runtime·osyield(SB),7,$0
268 MOVL $24, AX 283 MOVL $24, AX
269 SYSCALL 284 SYSCALL
270 RET 285 RET
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b