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

Side by Side Diff: src/runtime/sys_openbsd_386.s

Issue 168510043: [dev.cc] code review 168510043: runtime: convert assembly files for C to Go transition (Closed)
Patch Set: diff -r 022e3ed374e79747b98f073a69de1c7c6ca53efc https://code.google.com/p/go Created 10 years, 4 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:
View unified diff | Download patch
« no previous file with comments | « src/runtime/sys_netbsd_arm.s ('k') | src/runtime/sys_openbsd_amd64.s » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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, OpenBSD 5 // System calls and other sys.stuff for 386, OpenBSD
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 "go_asm.h"
10 #include "go_tls.h"
10 #include "textflag.h" 11 #include "textflag.h"
11 12
12 #define CLOCK_MONOTONIC $3 13 #define CLOCK_MONOTONIC $3
13 14
14 // Exit the entire program (like C exit) 15 // Exit the entire program (like C exit)
15 TEXT runtime·exit(SB),NOSPLIT,$-4 16 TEXT runtime·exit(SB),NOSPLIT,$-4
16 MOVL $1, AX 17 MOVL $1, AX
17 INT $0x80 18 INT $0x80
18 MOVL $0xf1, 0xf1 // crash 19 MOVL $0xf1, 0xf1 // crash
19 RET 20 RET
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 MOVL fd+0(FP), BX 390 MOVL fd+0(FP), BX
390 MOVL BX, 4(SP) // fd 391 MOVL BX, 4(SP) // fd
391 MOVL $2, 8(SP) // F_SETFD 392 MOVL $2, 8(SP) // F_SETFD
392 MOVL $1, 12(SP) // FD_CLOEXEC 393 MOVL $1, 12(SP) // FD_CLOEXEC
393 INT $0x80 394 INT $0x80
394 JAE 2(PC) 395 JAE 2(PC)
395 NEGL AX 396 NEGL AX
396 RET 397 RET
397 398
398 GLOBL runtime·tlsoffset(SB),NOPTR,$4 399 GLOBL runtime·tlsoffset(SB),NOPTR,$4
OLDNEW
« no previous file with comments | « src/runtime/sys_netbsd_arm.s ('k') | src/runtime/sys_openbsd_amd64.s » ('j') | no next file with comments »

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