LEFT | RIGHT |
(no file at all) | |
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 Loading... |
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 |
LEFT | RIGHT |