[Bug 1956] Fix CPU_STACK_ALIGNMENT

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Wed Nov 9 00:09:46 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1956

--- Comment #2 from seb at tmplab.org 2011-11-08 18:09:45 CST ---
Ok, let's just use alignment 4 everywhere...

Index: cpu.h
===================================================================
RCS file: /usr1/CVS/rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h,v
retrieving revision 1.14
diff -u -r1.14 cpu.h
--- cpu.h    27 Sep 2011 09:17:02 -0000    1.14
+++ cpu.h    8 Nov 2011 23:50:24 -0000
@@ -637,7 +637,7 @@
  *
  *  XXX document implementation including references if appropriate
  */
-#define CPU_ALIGNMENT              8
+#define CPU_ALIGNMENT              4

 /**
  *  This number corresponds to the byte alignment requirement for the
@@ -687,9 +687,10 @@
  *  stack.  This alignment requirement may be stricter than that for the
  *  data types alignment specified by @ref CPU_ALIGNMENT.  If the
  *  @ref CPU_ALIGNMENT is strict enough for the stack, then this should be
- *  set to 0.
+ *  set to @ref CPU_ALIGNMENT.
  *
- *  @note This must be a power of 2 either 0 or greater than @ref
CPU_ALIGNMENT.
+ *  @note This must be a power of 2 either equal to or greater than
+ *  @ref CPU_ALIGNMENT.
  *
  *  Port Specific Information:
  *

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list