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

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

Issue 170720043: code review 170720043: runtime: change top-most return PC from goexit to goexi... (Closed)
Patch Set: diff -r eed6d37ef785018594553b16ca5c2ef81d89a7ee https://code.google.com/p/go/ Created 9 years, 5 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/asm_amd64p32.s ('k') | src/runtime/proc.c » ('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 #include "zasm_GOOS_GOARCH.h" 5 #include "zasm_GOOS_GOARCH.h"
6 #include "funcdata.h" 6 #include "funcdata.h"
7 #include "textflag.h" 7 #include "textflag.h"
8 8
9 // using frame size $-4 means do not save LR on stack. 9 // using frame size $-4 means do not save LR on stack.
10 TEXT runtime·rt0_go(SB),NOSPLIT,$-4 10 TEXT runtime·rt0_go(SB),NOSPLIT,$-4
(...skipping 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after
1313 MOVW g, saveG-8(SP) 1313 MOVW g, saveG-8(SP)
1314 ········ 1314 ········
1315 BL runtime·load_g(SB) 1315 BL runtime·load_g(SB)
1316 MOVW g_m(g), R0 1316 MOVW g_m(g), R0
1317 MOVW m_curg(R0), R0 1317 MOVW m_curg(R0), R0
1318 MOVW (g_stack+stack_hi)(R0), R0 1318 MOVW (g_stack+stack_hi)(R0), R0
1319 ········ 1319 ········
1320 MOVW saveG-8(SP), g 1320 MOVW saveG-8(SP), g
1321 MOVW saveR11-4(SP), R11 1321 MOVW saveR11-4(SP), R11
1322 RET 1322 RET
1323
1324 // The top-most function running on a goroutine
1325 // returns to goexit+PCQuantum.
1326 TEXT runtime·goexit(SB),NOSPLIT,$-4-0
1327 MOVW R0, R0 // NOP
1328 BL runtime·goexit1(SB) // does not return
OLDNEW
« no previous file with comments | « src/runtime/asm_amd64p32.s ('k') | src/runtime/proc.c » ('j') | no next file with comments »

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