[rtems commit] powerpc: Fix _CPU_Context_validate()

Sebastian Huber sebh at rtems.org
Tue Aug 13 12:42:55 UTC 2013


Module:    rtems
Branch:    master
Commit:    2606fee394de9dd4f70b287627d0d24803e6c2ef
Changeset: http://git.rtems.org/rtems/commit/?id=2606fee394de9dd4f70b287627d0d24803e6c2ef

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Aug 13 09:54:25 2013 +0200

powerpc: Fix _CPU_Context_validate()

---

 cpukit/score/cpu/powerpc/ppc-context-validate.S |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cpukit/score/cpu/powerpc/ppc-context-validate.S b/cpukit/score/cpu/powerpc/ppc-context-validate.S
index 0e3154e..65f78c5 100644
--- a/cpukit/score/cpu/powerpc/ppc-context-validate.S
+++ b/cpukit/score/cpu/powerpc/ppc-context-validate.S
@@ -41,7 +41,7 @@
 #define GPR30_OFFSET OFFSET(16)
 #define GPR31_OFFSET OFFSET(17)
 #define FRAME_SIZE \
-  ((OFFSET(18) + CPU_STACK_ALIGNMENT - 1) & (CPU_STACK_ALIGNMENT - 1))
+  ((OFFSET(18) + CPU_STACK_ALIGNMENT - 1) & ~(CPU_STACK_ALIGNMENT - 1))
 
 	.global _CPU_Context_validate
 




More information about the vc mailing list