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

Delta Between Two Patch Sets: src/pkg/runtime/linux/arm/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/amd64/sys.s ('k') | src/pkg/runtime/openbsd/386/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 arm, Linux 6 // System calls and other sys.stuff for arm, Linux
7 // 7 //
8 8
9 #include "arm/asm.h" 9 #include "arm/asm.h"
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 RET 120 RET
121 121
122 TEXT runtime·mincore(SB),7,$0 122 TEXT runtime·mincore(SB),7,$0
123 MOVW 0(FP), R0 123 MOVW 0(FP), R0
124 MOVW 4(FP), R1 124 MOVW 4(FP), R1
125 MOVW 8(FP), R2 125 MOVW 8(FP), R2
126 MOVW $SYS_mincore, R7 126 MOVW $SYS_mincore, R7
127 SWI $0 127 SWI $0
128 RET 128 RET
129 129
130 TEXT time·now(SB), 7, $32
131 MOVW $8(R13), R0 // timeval
132 MOVW $0, R1 // zone
133 MOVW $SYS_gettimeofday, R7
134 SWI $0
135 ········
136 MOVW 8(R13), R0 // sec
137 MOVW 12(R13), R2 // usec
138 ········
139 MOVW R0, 0(FP)
140 MOVW $0, R1
141 MOVW R1, 4(FP)
142 MOVW $1000, R3
143 MUL R3, R2
144 MOVW R2, 8(FP)
145 RET·····
146
130 // int64 nanotime(void) so really 147 // int64 nanotime(void) so really
131 // void nanotime(int64 *nsec) 148 // void nanotime(int64 *nsec)
132 TEXT runtime·nanotime(SB),7,$32 149 TEXT runtime·nanotime(SB),7,$32
133 MOVW $8(R13), R0 // timeval 150 MOVW $8(R13), R0 // timeval
134 MOVW $0, R1 // zone 151 MOVW $0, R1 // zone
135 MOVW $SYS_gettimeofday, R7 152 MOVW $SYS_gettimeofday, R7
136 SWI $0 153 SWI $0
137 ········ 154 ········
138 MOVW 8(R13), R0 // sec 155 MOVW 8(R13), R0 // sec
139 MOVW 12(R13), R2 // usec 156 MOVW 12(R13), R2 // usec
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 RET 342 RET
326 343
327 344
328 TEXT runtime·casp(SB),7,$0 345 TEXT runtime·casp(SB),7,$0
329 B runtime·cas(SB) 346 B runtime·cas(SB)
330 347
331 TEXT runtime·osyield(SB),7,$0 348 TEXT runtime·osyield(SB),7,$0
332 MOVW $SYS_sched_yield, R7 349 MOVW $SYS_sched_yield, R7
333 SWI $0 350 SWI $0
334 RET 351 RET
LEFTRIGHT

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