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

Side by Side Diff: src/pkg/runtime/sys_freebsd_386.s

Issue 6498057: code review 6498057: runtime: discard SIGPROF delivered to non-Go threads. (Closed)
Patch Set: diff -r 92e962e13197 https://code.google.com/p/go/ Created 12 years, 6 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/pkg/runtime/sys_darwin_amd64.s ('k') | src/pkg/runtime/sys_freebsd_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, FreeBSD 5 // System calls and other sys.stuff for 386, FreeBSD
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 ········
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 JAE 2(PC) 155 JAE 2(PC)
156 MOVL $0xf1, 0xf1 // crash 156 MOVL $0xf1, 0xf1 // crash
157 RET 157 RET
158 158
159 TEXT runtime·sigtramp(SB),7,$44 159 TEXT runtime·sigtramp(SB),7,$44
160 get_tls(CX) 160 get_tls(CX)
161 161
162 // check that m exists 162 // check that m exists
163 MOVL m(CX), BX 163 MOVL m(CX), BX
164 CMPL BX, $0 164 CMPL BX, $0
165 » JNE» 2(PC) 165 » JNE» 5(PC)
166 » MOVL» signo+0(FP), BX
167 » MOVL» BX, 0(SP)
166 CALL runtime·badsignal(SB) 168 CALL runtime·badsignal(SB)
169 RET
167 170
168 // save g 171 // save g
169 MOVL g(CX), DI 172 MOVL g(CX), DI
170 MOVL DI, 20(SP) 173 MOVL DI, 20(SP)
171 ········ 174 ········
172 // g = m->gsignal 175 // g = m->gsignal
173 MOVL m_gsignal(BX), BX 176 MOVL m_gsignal(BX), BX
174 MOVL BX, g(CX) 177 MOVL BX, g(CX)
175 178
176 // copy arguments for call to sighandler 179 // copy arguments for call to sighandler
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 MOVL AX, 8(SP) // arg 2 - set 318 MOVL AX, 8(SP) // arg 2 - set
316 MOVL args+4(FP), AX 319 MOVL args+4(FP), AX
317 MOVL AX, 12(SP) // arg 3 - oset 320 MOVL AX, 12(SP) // arg 3 - oset
318 MOVL $340, AX // sys_sigprocmask 321 MOVL $340, AX // sys_sigprocmask
319 INT $0x80 322 INT $0x80
320 JAE 2(PC) 323 JAE 2(PC)
321 MOVL $0xf1, 0xf1 // crash 324 MOVL $0xf1, 0xf1 // crash
322 RET 325 RET
323 326
324 GLOBL runtime·tlsoffset(SB),$4 327 GLOBL runtime·tlsoffset(SB),$4
OLDNEW
« no previous file with comments | « src/pkg/runtime/sys_darwin_amd64.s ('k') | src/pkg/runtime/sys_freebsd_amd64.s » ('j') | no next file with comments »

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