Skip to content

Commit 941e591

Browse files
pmurgopherbot
authored andcommitted
runtime: cleanup comments from asm_ppc64x.s improvements
CL 706395 consolidated the aix and elf startup code, further update the comments to reflect this. Change-Id: Iccb98008b3fe4a4b08e55ee822924fad76846cc2 Reviewed-on: https://go-review.googlesource.com/c/go/+/708355 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Paul Murphy <[email protected]> Reviewed-by: Quim Muntal <[email protected]> Reviewed-by: Michael Pratt <[email protected]> Reviewed-by: Keith Randall <[email protected]>
1 parent d945600 commit 941e591

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/runtime/asm_ppc64x.s

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
#include "asm_ppc64x.h"
1212
#include "cgo/abi_ppc64x.h"
1313

14-
14+
// This is called using the host ABI. argc and argv arguments
15+
// should be in R3 and R4 respectively.
1516
TEXT _rt0_ppc64x_lib(SB),NOSPLIT|NOFRAME,$0
16-
// This is called with ELFv2 calling conventions. Convert to Go.
17-
// Allocate argument storage for call to newosproc0.
17+
// Convert to Go ABI, and Allocate argument storage for call to newosproc0.
1818
STACK_AND_SAVE_HOST_TO_GO_ABI(16)
1919

2020
MOVD R3, _rt0_ppc64x_lib_argc<>(SB)
@@ -48,7 +48,6 @@ nocgo:
4848
BL (CTR)
4949

5050
done:
51-
// Restore and return to ELFv2 caller.
5251
UNSTACK_AND_RESTORE_GO_TO_HOST_ABI(16)
5352
RET
5453

0 commit comments

Comments
 (0)