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

Delta Between Two Patch Sets: src/pkg/runtime/darwin/386/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 | « no previous file | src/pkg/runtime/darwin/amd64/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 // System calls and other sys.stuff for 386, Darwin 5 // System calls and other sys.stuff for 386, Darwin
6 // See http://fxr.watson.org/fxr/source/bsd/kern/syscalls.c?v=xnu-1228 6 // See http://fxr.watson.org/fxr/source/bsd/kern/syscalls.c?v=xnu-1228
7 // or /usr/include/sys/syscall.h (on a Mac) for system call numbers. 7 // or /usr/include/sys/syscall.h (on a Mac) for system call numbers.
8 8
9 #include "386/asm.h" 9 #include "386/asm.h"
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 TEXT runtime·munmap(SB),7,$0 51 TEXT runtime·munmap(SB),7,$0
52 MOVL $73, AX 52 MOVL $73, AX
53 INT $0x80 53 INT $0x80
54 JAE 2(PC) 54 JAE 2(PC)
55 CALL runtime·notok(SB) 55 CALL runtime·notok(SB)
56 RET 56 RET
57 57
58 TEXT runtime·setitimer(SB),7,$0 58 TEXT runtime·setitimer(SB),7,$0
59 MOVL $83, AX 59 MOVL $83, AX
60 INT $0x80 60 INT $0x80
61 RET
62
63 // func now() (sec int64, nsec int32)
64 TEXT time·now(SB), 7, $32
65 LEAL 12(SP), AX // must be non-nil, unused
66 MOVL AX, 4(SP)
67 MOVL $0, 8(SP) // time zone pointer
68 MOVL $116, AX
69 INT $0x80
70 MOVL DX, BX
71
72 // sec is in AX, usec in BX
73 MOVL AX, sec+0(FP)
74 MOVL $0, sec+4(FP)
75 IMULL $1000, BX
76 MOVL BX, nsec+8(FP)
61 RET 77 RET
62 78
63 // int64 nanotime(void) so really 79 // int64 nanotime(void) so really
64 // void nanotime(int64 *nsec) 80 // void nanotime(int64 *nsec)
65 TEXT runtime·nanotime(SB), 7, $32 81 TEXT runtime·nanotime(SB), 7, $32
66 LEAL 12(SP), AX // must be non-nil, unused 82 LEAL 12(SP), AX // must be non-nil, unused
67 MOVL AX, 4(SP) 83 MOVL AX, 4(SP)
68 MOVL $0, 8(SP) // time zone pointer 84 MOVL $0, 8(SP) // time zone pointer
69 MOVL $116, AX 85 MOVL $116, AX
70 INT $0x80 86 INT $0x80
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 RET 354 RET
339 355
340 TEXT runtime·sysctl(SB),7,$0 356 TEXT runtime·sysctl(SB),7,$0
341 MOVL $202, AX 357 MOVL $202, AX
342 INT $0x80 358 INT $0x80
343 JAE 3(PC) 359 JAE 3(PC)
344 NEGL AX 360 NEGL AX
345 RET 361 RET
346 MOVL $0, AX 362 MOVL $0, AX
347 RET 363 RET
LEFTRIGHT

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