Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a link to the gcc discussion about patcher. #13083

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion opal/mca/patcher/patcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@
#if defined(PLATFORM_ARCH_POWERPC) && defined(PLATFORM_ARCH_64)

/* special processing for ppc64 to save and restore TOC (r2)
* Reference: "64-bit PowerPC ELF Application Binary Interface Supplement 1.9" */
* Reference: "64-bit PowerPC ELF Application Binary Interface Supplement 1.9"
*
* As suggested here https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95692
* we need to clobber the memory to guarantee ordering.
*/
# define OPAL_PATCHER_BEGIN \
unsigned long toc_save; \
asm volatile("std 2, %0" : "=m"(toc_save) :: "memory"); \
Expand Down