Эх сурвалжийг харах

sparc32, leon: Align ccall_info to prevent unaligned traps on crosscall

It is being filled in using std in leon_cross_call.

Signed-off-by: Andreas Larsson <andreas@gaisler.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Andreas Larsson 10 жил өмнө
parent
commit
92f268eefe

+ 1 - 1
arch/sparc/kernel/leon_smp.c

@@ -368,7 +368,7 @@ static struct smp_funcall {
 	unsigned long arg5;
 	unsigned long arg5;
 	unsigned long processors_in[NR_CPUS];	/* Set when ipi entered. */
 	unsigned long processors_in[NR_CPUS];	/* Set when ipi entered. */
 	unsigned long processors_out[NR_CPUS];	/* Set when ipi exited. */
 	unsigned long processors_out[NR_CPUS];	/* Set when ipi exited. */
-} ccall_info;
+} ccall_info __attribute__((aligned(8)));
 
 
 static DEFINE_SPINLOCK(cross_call_lock);
 static DEFINE_SPINLOCK(cross_call_lock);