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

Unified Diff: src/pkg/runtime/asm_386.s

Issue 71030044: code review 71030044: cmd/ld: clear unused ctxt before morestack (Closed)
Patch Set: diff -r 363a4ef7e011 https://code.google.com/p/go/ Created 11 years 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/liblink/obj8.c ('k') | src/pkg/runtime/asm_amd64.s » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/pkg/runtime/asm_386.s
===================================================================
--- a/src/pkg/runtime/asm_386.s
+++ b/src/pkg/runtime/asm_386.s
@@ -247,6 +247,10 @@
MOVL $0, 0x1003 // crash if newstack returns
RET
+TEXT runtime·morestack_noctxt(SB),NOSPLIT,$0-0
+ MOVL $0, DX
+ JMP runtime·morestack(SB)
+
// Called from panic. Mimics morestack,
// reuses stack growth code to create a frame
// with the desired args running the desired function.
« no previous file with comments | « src/liblink/obj8.c ('k') | src/pkg/runtime/asm_amd64.s » ('j') | no next file with comments »

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