$67 GRAYBYTE WORDPRESS FILE MANAGER $47

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/lib/golang/src/runtime/cgo/

HOME
Current File : /lib/golang/src/runtime/cgo//gcc_linux_ppc64x.S
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

//go:build linux && (ppc64 || ppc64le)

.file "gcc_linux_ppc64x.S"

// Define a frame which has no argument space, but is compatible with
// a call into a Go ABI. We allocate 32B to match FIXED_FRAME with
// similar semantics, except we store the backchain pointer, not the
// LR at offset 0. R2 is stored in the Go TOC save slot (offset 24).
.set GPR_OFFSET, 32
.set FPR_OFFSET, GPR_OFFSET + 18*8
.set VR_OFFSET, FPR_OFFSET + 18*8
.set FRAME_SIZE, VR_OFFSET + 12*16

.macro FOR_EACH_GPR opcode r=14
.ifge 31 - \r
	\opcode \r, GPR_OFFSET + 8*(\r-14)(1)
	FOR_EACH_GPR \opcode "(\r+1)"
.endif
.endm

.macro FOR_EACH_FPR opcode fr=14
.ifge 31 - \fr
	\opcode \fr, FPR_OFFSET + 8*(\fr-14)(1)
	FOR_EACH_FPR \opcode "(\fr+1)"
.endif
.endm

.macro FOR_EACH_VR opcode vr=20
.ifge 31 - \vr
	li 0, VR_OFFSET + 16*(\vr-20)
	\opcode \vr, 1, 0
	FOR_EACH_VR \opcode "(\vr+1)"
.endif
.endm

/*
 * void crosscall_ppc64(void (*fn)(void), void *g)
 *
 * Calling into the gc tool chain, where all registers are caller save.
 * Called from standard ppc64 C ABI, where r2, r14-r31, f14-f31 are
 * callee-save, so they must be saved explicitly.
 */
.globl crosscall_ppc64
crosscall_ppc64:
	// Start with standard C stack frame layout and linkage
	mflr	%r0
	std	%r0, 16(%r1)	// Save LR in caller's frame
	mfcr	%r0
	std	%r0, 8(%r1)	// Save CR in caller's frame
	stdu	%r1, -FRAME_SIZE(%r1)
	std	%r2, 24(%r1)

	FOR_EACH_GPR std
	FOR_EACH_FPR stfd
	FOR_EACH_VR stvx

	// Set up Go ABI constant registers
	li	%r0, 0

	// Restore g pointer (r30 in Go ABI, which may have been clobbered by C)
	mr	%r30, %r4

	// Call fn
	mr	%r12, %r3
	mtctr	%r3
	bctrl

	FOR_EACH_GPR ld
	FOR_EACH_FPR lfd
	FOR_EACH_VR lvx

	ld	%r2, 24(%r1)
	addi	%r1, %r1, FRAME_SIZE
	ld	%r0, 16(%r1)
	mtlr	%r0
	ld	%r0, 8(%r1)
	mtcr	%r0
	blr

#ifdef __ELF__
.section .note.GNU-stack,"",%progbits
#endif

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
16 Dec 2025 9.34 PM
root / root
0755
abi_amd64.h
2.729 KB
4 Dec 2025 6.06 PM
root / root
0644
abi_arm64.h
1.495 KB
4 Dec 2025 6.06 PM
root / root
0644
abi_loong64.h
1.947 KB
4 Dec 2025 6.06 PM
root / root
0644
abi_ppc64x.h
6.552 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_386.s
1.156 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_amd64.s
1.352 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_arm.s
2.23 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_arm64.s
1.444 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_loong64.s
1.513 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_mips64x.s
2.465 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_mipsx.s
2.399 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_ppc64x.s
2.4 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_riscv64.s
2.307 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_s390x.s
1.749 KB
4 Dec 2025 6.06 PM
root / root
0644
asm_wasm.s
0.264 KB
4 Dec 2025 6.06 PM
root / root
0644
callbacks.go
5.578 KB
4 Dec 2025 6.06 PM
root / root
0644
callbacks_aix.go
0.393 KB
4 Dec 2025 6.06 PM
root / root
0644
callbacks_traceback.go
0.464 KB
4 Dec 2025 6.06 PM
root / root
0644
cgo.go
1.161 KB
4 Dec 2025 6.06 PM
root / root
0644
dragonfly.go
0.474 KB
4 Dec 2025 6.06 PM
root / root
0644
freebsd.go
0.536 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_386.S
0.937 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_aix_ppc64.S
2.682 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_aix_ppc64.c
1.254 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_amd64.S
1.129 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_android.c
2.578 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_arm.S
0.829 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_arm64.S
1.747 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_context.c
0.455 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_darwin_amd64.c
1.347 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_darwin_arm64.c
3.729 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_dragonfly_amd64.c
1.266 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_fatalf.c
0.514 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_freebsd.c
1.566 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_freebsd_amd64.c
1.573 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_freebsd_sigaction.c
1.991 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_libinit.c
5.847 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_libinit_windows.c
4.396 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_linux.c
1.465 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_linux_amd64.c
2.354 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_linux_arm64.c
2.227 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_linux_ppc64x.S
1.951 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_linux_s390x.c
1.32 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_loong64.S
1.548 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_mips64x.S
1.788 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_mipsx.S
1.535 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_mmap.c
0.895 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_netbsd.c
1.764 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_openbsd.c
1.297 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_ppc64x.c
1.392 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_riscv64.S
1.579 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_s390x.S
1.394 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_setenv.c
0.476 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_sigaction.c
2.174 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_signal2_ios_arm64.c
0.496 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_signal_ios_arm64.c
5.978 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_signal_ios_nolldb.c
0.305 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_solaris_amd64.c
1.985 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_stack_darwin.c
0.603 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_stack_unix.c
1.455 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_stack_windows.c
0.239 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_traceback.c
1.524 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_util.c
1.85 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_windows_386.c
1.171 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_windows_amd64.c
1.067 KB
4 Dec 2025 6.06 PM
root / root
0644
gcc_windows_arm64.c
0.794 KB
4 Dec 2025 6.06 PM
root / root
0644
handle.go
3.87 KB
4 Dec 2025 6.06 PM
root / root
0644
iscgo.go
0.631 KB
4 Dec 2025 6.06 PM
root / root
0644
libcgo.h
3.521 KB
4 Dec 2025 6.06 PM
root / root
0644
libcgo_unix.h
0.668 KB
4 Dec 2025 6.06 PM
root / root
0644
libcgo_windows.h
0.271 KB
4 Dec 2025 6.06 PM
root / root
0644
linux.go
2.744 KB
4 Dec 2025 6.06 PM
root / root
0644
linux_syscall.c
1.88 KB
4 Dec 2025 6.06 PM
root / root
0644
mmap.go
1.027 KB
4 Dec 2025 6.06 PM
root / root
0644
netbsd.go
0.533 KB
4 Dec 2025 6.06 PM
root / root
0644
openbsd.go
0.553 KB
4 Dec 2025 6.06 PM
root / root
0644
setenv.go
0.583 KB
4 Dec 2025 6.06 PM
root / root
0644
sigaction.go
0.848 KB
4 Dec 2025 6.06 PM
root / root
0644
signal_ios_arm64.go
0.264 KB
4 Dec 2025 6.06 PM
root / root
0644
signal_ios_arm64.s
1.805 KB
4 Dec 2025 6.06 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF