Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/golang/src/runtime
File: asm_ppc64x.h
// Copyright 2015 The Go Authors. All rights reserved.
[0] Fix | Delete
// Use of this source code is governed by a BSD-style
[1] Fix | Delete
// license that can be found in the LICENSE file.
[2] Fix | Delete
[3] Fix | Delete
// FIXED_FRAME defines the size of the fixed part of a stack frame. A stack
[4] Fix | Delete
// frame looks like this:
[5] Fix | Delete
//
[6] Fix | Delete
// +---------------------+
[7] Fix | Delete
// | local variable area |
[8] Fix | Delete
// +---------------------+
[9] Fix | Delete
// | argument area |
[10] Fix | Delete
// +---------------------+ <- R1+FIXED_FRAME
[11] Fix | Delete
// | fixed area |
[12] Fix | Delete
// +---------------------+ <- R1
[13] Fix | Delete
//
[14] Fix | Delete
// So a function that sets up a stack frame at all uses as least FIXED_FRAME
[15] Fix | Delete
// bytes of stack. This mostly affects assembly that calls other functions
[16] Fix | Delete
// with arguments (the arguments should be stored at FIXED_FRAME+0(R1),
[17] Fix | Delete
// FIXED_FRAME+8(R1) etc) and some other low-level places.
[18] Fix | Delete
//
[19] Fix | Delete
// The reason for using a constant is to make supporting PIC easier (although
[20] Fix | Delete
// we only support PIC on ppc64le which has a minimum 32 bytes of stack frame,
[21] Fix | Delete
// and currently always use that much, PIC on ppc64 would need to use 48).
[22] Fix | Delete
[23] Fix | Delete
#define FIXED_FRAME 32
[24] Fix | Delete
[25] Fix | Delete
// aix/ppc64 uses XCOFF which uses function descriptors.
[26] Fix | Delete
// AIX cannot perform the TOC relocation in a text section.
[27] Fix | Delete
// Therefore, these descriptors must live in a data section.
[28] Fix | Delete
#ifdef GOOS_aix
[29] Fix | Delete
#ifdef GOARCH_ppc64
[30] Fix | Delete
#define GO_PPC64X_HAS_FUNCDESC
[31] Fix | Delete
#define DEFINE_PPC64X_FUNCDESC(funcname, localfuncname) \
[32] Fix | Delete
DATA funcname+0(SB)/8, $localfuncname(SB) \
[33] Fix | Delete
DATA funcname+8(SB)/8, $TOC(SB) \
[34] Fix | Delete
DATA funcname+16(SB)/8, $0 \
[35] Fix | Delete
GLOBL funcname(SB), NOPTR, $24
[36] Fix | Delete
#endif
[37] Fix | Delete
#endif
[38] Fix | Delete
[39] Fix | Delete
// linux/ppc64 uses ELFv1 which uses function descriptors.
[40] Fix | Delete
// These must also look like ABI0 functions on linux/ppc64
[41] Fix | Delete
// to work with abi.FuncPCABI0(sigtramp) in os_linux.go.
[42] Fix | Delete
// Only static codegen is supported on linux/ppc64, so TOC
[43] Fix | Delete
// is not needed.
[44] Fix | Delete
#ifdef GOOS_linux
[45] Fix | Delete
#ifdef GOARCH_ppc64
[46] Fix | Delete
#define GO_PPC64X_HAS_FUNCDESC
[47] Fix | Delete
#define DEFINE_PPC64X_FUNCDESC(funcname, localfuncname) \
[48] Fix | Delete
TEXT funcname(SB),NOSPLIT|NOFRAME,$0 \
[49] Fix | Delete
DWORD $localfuncname(SB) \
[50] Fix | Delete
DWORD $0 \
[51] Fix | Delete
DWORD $0
[52] Fix | Delete
#endif
[53] Fix | Delete
#endif
[54] Fix | Delete
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function