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

Delta Between Two Patch Sets: src/pkg/runtime/sys_netbsd_386.s

Issue 7543043: code review 7543043: runtime: faster & safer hash function (Closed)
Left Patch Set: diff -r 37d4691df584 https://code.google.com/p/go/ Created 12 years, 1 month ago
Right Patch Set: diff -r a45e271add6c https://code.google.com/p/go/ Created 12 years 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/sys_freebsd_amd64.s ('k') | src/pkg/runtime/sys_netbsd_amd64.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, NetBSD 5 // System calls and other sys.stuff for 386, NetBSD
6 // /usr/src/sys/kern/syscalls.master for syscall numbers. 6 // /usr/src/sys/kern/syscalls.master for syscall numbers.
7 // 7 //
8 8
9 #include "zasm_GOOS_GOARCH.h" 9 #include "zasm_GOOS_GOARCH.h"
10 10
11 // Exit the entire program (like C exit) 11 // Exit the entire program (like C exit)
12 TEXT runtime·exit(SB),7,$-4 12 TEXT runtime·exit(SB),7,$-4
13 MOVL $1, AX 13 MOVL $1, AX
14 INT $0x80 14 INT $0x80
15 MOVL $0xf1, 0xf1 // crash 15 MOVL $0xf1, 0xf1 // crash
16 RET 16 RET
17 17
18 TEXT runtime·exit1(SB),7,$-4 18 TEXT runtime·exit1(SB),7,$-4
19 MOVL $310, AX // sys__lwp_exit 19 MOVL $310, AX // sys__lwp_exit
20 INT $0x80 20 INT $0x80
21 JAE 2(PC) 21 JAE 2(PC)
22 MOVL $0xf1, 0xf1 // crash 22 MOVL $0xf1, 0xf1 // crash
23 RET
24
25 TEXT runtime·open(SB),7,$-4
26 MOVL $5, AX
27 INT $0x80
28 RET
29
30 TEXT runtime·close(SB),7,$-4
31 MOVL $6, AX
32 INT $0x80
33 RET
34
35 TEXT runtime·read(SB),7,$-4
36 MOVL $3, AX
37 INT $0x80
23 RET 38 RET
24 39
25 TEXT runtime·write(SB),7,$-4 40 TEXT runtime·write(SB),7,$-4
26 MOVL $4, AX // sys_write 41 MOVL $4, AX // sys_write
27 INT $0x80 42 INT $0x80
28 RET 43 RET
29 44
30 TEXT runtime·usleep(SB),7,$24 45 TEXT runtime·usleep(SB),7,$24
31 MOVL $0, DX 46 MOVL $0, DX
32 MOVL usec+0(FP), AX 47 MOVL usec+0(FP), AX
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 MOVSL // arg 6 - newlen 335 MOVSL // arg 6 - newlen
321 MOVL $202, AX // sys___sysctl 336 MOVL $202, AX // sys___sysctl
322 INT $0x80 337 INT $0x80
323 JCC 3(PC) 338 JCC 3(PC)
324 NEGL AX 339 NEGL AX
325 RET 340 RET
326 MOVL $0, AX 341 MOVL $0, AX
327 RET 342 RET
328 343
329 GLOBL runtime·tlsoffset(SB),$4 344 GLOBL runtime·tlsoffset(SB),$4
LEFTRIGHT

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