From c8df844cf3bddde0221614843c97cb6c950cdba9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 19 Jun 2018 14:59:51 +0200 Subject: score: Add CPU_INTERRUPT_STACK_ALIGNMENT Add CPU port define for the interrupt stack alignment. The alignment should take the stack ABI and the cache line size into account. Update #3459. --- cpukit/score/cpu/powerpc/include/rtems/score/cpu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpukit/score/cpu/powerpc/include/rtems/score/cpu.h') diff --git a/cpukit/score/cpu/powerpc/include/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/include/rtems/score/cpu.h index 6c663cd1b4..65f31ddb6c 100644 --- a/cpukit/score/cpu/powerpc/include/rtems/score/cpu.h +++ b/cpukit/score/cpu/powerpc/include/rtems/score/cpu.h @@ -761,6 +761,8 @@ void ppc_set_interrupt_level( uint32_t level ); #define CPU_STACK_ALIGNMENT (PPC_STACK_ALIGNMENT) +#define CPU_INTERRUPT_STACK_ALIGNMENT CPU_CACHE_LINE_BYTES + #ifndef ASM /* The following routine swaps the endian format of an unsigned int. * It must be static because it is referenced indirectly. -- cgit v1.2.3