We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d945600 commit 941e591Copy full SHA for 941e591
src/runtime/asm_ppc64x.s
@@ -11,10 +11,10 @@
11
#include "asm_ppc64x.h"
12
#include "cgo/abi_ppc64x.h"
13
14
-
+// This is called using the host ABI. argc and argv arguments
15
+// should be in R3 and R4 respectively.
16
TEXT _rt0_ppc64x_lib(SB),NOSPLIT|NOFRAME,$0
- // This is called with ELFv2 calling conventions. Convert to Go.
17
- // Allocate argument storage for call to newosproc0.
+ // Convert to Go ABI, and Allocate argument storage for call to newosproc0.
18
STACK_AND_SAVE_HOST_TO_GO_ABI(16)
19
20
MOVD R3, _rt0_ppc64x_lib_argc<>(SB)
@@ -48,7 +48,6 @@ nocgo:
48
BL (CTR)
49
50
done:
51
- // Restore and return to ELFv2 caller.
52
UNSTACK_AND_RESTORE_GO_TO_HOST_ABI(16)
53
RET
54
0 commit comments