<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2011-11-28)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-11-28 Werner Almesberger <werner@almesberger.net>

        PR 1956/cpukit
        * rtems/score/cpu.h: Correct multiple alignment constants. Improve
        comments.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/ChangeLog.diff?r1=text&tr1=1.26&r2=text&tr2=1.27&diff_format=h">M</a></td><td width='1%'>1.27</td><td width='100%'>cpukit/score/cpu/lm32/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h.diff?r1=text&tr1=1.15&r2=text&tr2=1.16&diff_format=h">M</a></td><td width='1%'>1.16</td><td width='100%'>cpukit/score/cpu/lm32/rtems/score/cpu.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/score/cpu/lm32/ChangeLog:1.26 rtems/cpukit/score/cpu/lm32/ChangeLog:1.27
--- rtems/cpukit/score/cpu/lm32/ChangeLog:1.26  Wed Nov  9 12:51:59 2011
+++ rtems/cpukit/score/cpu/lm32/ChangeLog       Mon Nov 28 11:36:35 2011
</font><font color='#997700'>@@ -1,3 +1,9 @@
</font><font color='#000088'>+2011-11-28    Werner Almesberger <werner@almesberger.net>
+
+       PR 1956/cpukit
+       * rtems/score/cpu.h: Correct multiple alignment constants. Improve
+       comments.
+
</font> 2011-11-09        Werner Almesberger <werner@almesberger.net>
 
        PR 1954/cpukit

<font color='#006600'>diff -u rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.15 rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.16
--- rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h:1.15  Wed Nov  9 09:15:25 2011
+++ rtems/cpukit/score/cpu/lm32/rtems/score/cpu.h       Mon Nov 28 11:36:35 2011
</font><font color='#997700'>@@ -3,20 +3,8 @@
</font>  */
 
 /*
<font color='#880000'>- *  This include file contains information pertaining to the XXX
</font><font color='#000088'>+ *  This include file contains information pertaining to the LM32
</font>  *  processor.
<font color='#880000'>- *
- *  @note This file is part of a porting template that is intended
- *  to be used as the starting point when porting RTEMS to a new
- *  CPU family.  The following needs to be done when using this as
- *  the starting point for a new port:
- *
- *  + Anywhere there is an XXX, it should be replaced
- *    with information about the CPU family being ported to.
- *
- *  + At the end of each comment section, there is a heading which
- *    says "Port Specific Information:".  When porting to RTEMS,
- *    add CPU family specific information in this section
</font>  */
 
 /*
<font color='#997700'>@@ -347,9 +335,9 @@
</font>  *
  *  Port Specific Information:
  *
<font color='#880000'>- *  XXX document implementation including references if appropriate
</font><font color='#000088'>+ *  L2 cache lines are 32 bytes in Milkymist SoC
</font>  */
<font color='#880000'>-#define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned (8)))
</font><font color='#000088'>+#define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned (32)))
</font> 
 #define CPU_TIMESTAMP_USE_INT64_INLINE TRUE
 
<font color='#997700'>@@ -634,10 +622,12 @@
</font>  *  alignment does not take into account the requirements for the stack.
  *
  *  Port Specific Information:
<font color='#880000'>- *
- *  XXX document implementation including references if appropriate
</font><font color='#000088'>+ *  The LM32 architecture manual simply states: "All memory accesses must be
+ *  aligned to the size of the access", and there is no hardware support
+ *  whatsoever for 64-bit numbers.
+ *  (lm32_archman.pdf, July 2009, p. 15)
</font>  */
<font color='#880000'>-#define CPU_ALIGNMENT              8
</font><font color='#000088'>+#define CPU_ALIGNMENT              4
</font> 
 /**
  *  This number corresponds to the byte alignment requirement for the
<font color='#997700'>@@ -685,17 +675,14 @@
</font> /**
  *  This number corresponds to the byte alignment requirement for the
  *  stack.  This alignment requirement may be stricter than that for the
<font color='#880000'>- *  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.
</font><font color='#000088'>+ *  data types alignment specified by @ref CPU_ALIGNMENT.
</font>  *
<font color='#880000'>- *  @note This must be a power of 2 either 0 or greater than @ref CPU_ALIGNMENT.
</font>  *
  *  Port Specific Information:
  *
<font color='#880000'>- *  XXX document implementation including references if appropriate
</font><font color='#000088'>+ *  Stack is software-managed
</font>  */
<font color='#880000'>-#define CPU_STACK_ALIGNMENT        4
</font><font color='#000088'>+#define CPU_STACK_ALIGNMENT        CPU_ALIGNMENT
</font> 
 /*
  *  ISR handler macros
</pre>
<p> </p>
<a name='cs2'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>joel</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2011-11-28 Joel Sherrill <joel.sherrill@oarcorp.com>

        PR 1941/cpukit
        * libmisc/monitor/mon-server.c, score/include/rtems/system.h: Remove
        use of RTEMS_offset() in favor of standard offsetof(). This was
        undocumented and there was only one internal use. Change noted in
        4.11 release notes.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2995&r2=text&tr2=1.2996&diff_format=h">M</a></td><td width='1%'>1.2996</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libmisc/monitor/mon-server.c.diff?r1=text&tr1=1.14&r2=text&tr2=1.15&diff_format=h">M</a></td><td width='1%'>1.15</td><td width='100%'>cpukit/libmisc/monitor/mon-server.c</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/score/include/rtems/system.h.diff?r1=text&tr1=1.66&r2=text&tr2=1.67&diff_format=h">M</a></td><td width='1%'>1.67</td><td width='100%'>cpukit/score/include/rtems/system.h</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2995 rtems/cpukit/ChangeLog:1.2996
--- rtems/cpukit/ChangeLog:1.2995       Mon Nov 28 10:36:14 2011
+++ rtems/cpukit/ChangeLog      Mon Nov 28 11:51:46 2011
</font><font color='#997700'>@@ -1,3 +1,11 @@
</font><font color='#000088'>+2011-11-28    Joel Sherrill <joel.sherrill@oarcorp.com>
+
+       PR 1941/cpukit
+       * libmisc/monitor/mon-server.c, score/include/rtems/system.h: Remove
+       use of RTEMS_offset() in favor of standard offsetof(). This was
+       undocumented and there was only one internal use. Change noted in
+       4.11 release notes.
+
</font> 2011-11-28        Werner Almesberger <werner@almesberger.net>
 
        PR 1961/cpukit

<font color='#006600'>diff -u rtems/cpukit/libmisc/monitor/mon-server.c:1.14 rtems/cpukit/libmisc/monitor/mon-server.c:1.15
--- rtems/cpukit/libmisc/monitor/mon-server.c:1.14      Fri Jan  2 07:01:21 2009
+++ rtems/cpukit/libmisc/monitor/mon-server.c   Mon Nov 28 11:51:47 2011
</font><font color='#997700'>@@ -160,7 +160,7 @@
</font>                 response.result0 = next_id;
                 response.result1 = size;
 
<font color='#880000'>-#define SERVER_OVERHEAD  (RTEMS_offsetof(rtems_monitor_server_response_t, \
</font><font color='#000088'>+#define SERVER_OVERHEAD  (offsetof(rtems_monitor_server_response_t, \
</font>                                          payload))
 
                 status = rtems_message_queue_send(request.return_id,

<font color='#006600'>diff -u rtems/cpukit/score/include/rtems/system.h:1.66 rtems/cpukit/score/include/rtems/system.h:1.67
--- rtems/cpukit/score/include/rtems/system.h:1.66      Fri Jul 16 03:31:34 2010
+++ rtems/cpukit/score/include/rtems/system.h   Mon Nov 28 11:51:47 2011
</font><font color='#997700'>@@ -34,12 +34,6 @@
</font> #endif
 
 /**
<font color='#880000'>- *  This macro is used to obtain the offset of a field in a structure.
- */
-#define RTEMS_offsetof(type, field) \
-       ((uintptr_t) &(((type *) 0)->field))
-
-/**
</font>  *  The following is the extern for the RTEMS version string.
  *
  *  @note The contents of this string are CPU specific.
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>