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

Unified Diff: src/pkg/runtime/sys_darwin_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 11 years, 6 months ago
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/pkg/runtime/signal_linux_amd64.c ('k') | src/pkg/runtime/sys_darwin_amd64.s » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/sys_darwin_386.s
===================================================================
--- a/src/pkg/runtime/sys_darwin_386.s
+++ b/src/pkg/runtime/sys_darwin_386.s
@@ -213,8 +213,8 @@
// It is called with the following arguments on the stack:
// 0(FP) "return address" - ignored
// 4(FP) actual handler
-// 8(FP) siginfo style - ignored
-// 12(FP) signal number
+// 8(FP) signal number
+// 12(FP) siginfo style
// 16(FP) siginfo
// 20(FP) context
TEXT runtime·sigtramp(SB),7,$40
@@ -223,8 +223,11 @@
// check that m exists
MOVL m(CX), BP
CMPL BP, $0
- JNE 2(PC)
+ JNE 5(PC)
+ MOVL sig+8(FP), BX
+ MOVL BX, 0(SP)
CALL runtime·badsignal(SB)
+ RET
// save g
MOVL g(CX), DI
« no previous file with comments | « src/pkg/runtime/signal_linux_amd64.c ('k') | src/pkg/runtime/sys_darwin_amd64.s » ('j') | no next file with comments »

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