Skip to content

Instantly share code, notes, and snippets.

@mpe
Created December 18, 2020 00:26
Show Gist options
  • Save mpe/406225df3af9347a402e8a3d1a87e734 to your computer and use it in GitHub Desktop.
Save mpe/406225df3af9347a402e8a3d1a87e734 to your computer and use it in GitHub Desktop.
For the 32-bit LE VDSO, the stack & symbol macros, in particular DOTSYM, need to be based on the bitness of the current compilation unit, not the kernel.
diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h
index cfa814824285..f806e1082561 100644
--- a/arch/powerpc/include/asm/ppc_asm.h
+++ b/arch/powerpc/include/asm/ppc_asm.h
@@ -180,7 +180,7 @@ END_FW_FTR_SECTION_IFSET(FW_FEATURE_SPLPAR)
#define VCPU_GPR(n) __VCPU_GPR(__REG_##n)
#ifdef __KERNEL__
-#ifdef CONFIG_PPC64
+#ifdef __powerpc64__
#define STACKFRAMESIZE 256
#define __STK_REG(i) (112 + ((i)-14)*8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment