change log for rtems (2011-11-28)
rtems-vc at rtems.org
rtems-vc at rtems.org
Mon Nov 28 18:11:41 UTC 2011
*joel*:
2011-11-28 Werner Almesberger <werner at almesberger.net>
PR 1956/cpukit
* rtems/score/cpu.h: Correct multiple alignment constants. Improve
comments.
M 1.27 cpukit/score/cpu/lm32/ChangeLog
M 1.16 cpukit/score/cpu/lm32/rtems/score/cpu.h
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
@@ -1,3 +1,9 @@
+2011-11-28 Werner Almesberger <werner at almesberger.net>
+
+ PR 1956/cpukit
+ * rtems/score/cpu.h: Correct multiple alignment constants. Improve
+ comments.
+
2011-11-09 Werner Almesberger <werner at almesberger.net>
PR 1954/cpukit
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
@@ -3,20 +3,8 @@
*/
/*
- * This include file contains information pertaining to the XXX
+ * This include file contains information pertaining to the LM32
* processor.
- *
- * @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
*/
/*
@@ -347,9 +335,9 @@
*
* Port Specific Information:
*
- * XXX document implementation including references if appropriate
+ * L2 cache lines are 32 bytes in Milkymist SoC
*/
-#define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned (8)))
+#define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned (32)))
#define CPU_TIMESTAMP_USE_INT64_INLINE TRUE
@@ -634,10 +622,12 @@
* alignment does not take into account the requirements for the stack.
*
* Port Specific Information:
- *
- * XXX document implementation including references if appropriate
+ * 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)
*/
-#define CPU_ALIGNMENT 8
+#define CPU_ALIGNMENT 4
/**
* This number corresponds to the byte alignment requirement for the
@@ -685,17 +675,14 @@
/**
* This number corresponds to the byte alignment requirement for the
* 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.
+ * data types alignment specified by @ref CPU_ALIGNMENT.
*
- * @note This must be a power of 2 either 0 or greater than @ref CPU_ALIGNMENT.
*
* Port Specific Information:
*
- * XXX document implementation including references if appropriate
+ * Stack is software-managed
*/
-#define CPU_STACK_ALIGNMENT 4
+#define CPU_STACK_ALIGNMENT CPU_ALIGNMENT
/*
* ISR handler macros
*joel*:
2011-11-28 Joel Sherrill <joel.sherrill at 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.
M 1.2996 cpukit/ChangeLog
M 1.15 cpukit/libmisc/monitor/mon-server.c
M 1.67 cpukit/score/include/rtems/system.h
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
@@ -1,3 +1,11 @@
+2011-11-28 Joel Sherrill <joel.sherrill at 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.
+
2011-11-28 Werner Almesberger <werner at almesberger.net>
PR 1961/cpukit
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
@@ -160,7 +160,7 @@
response.result0 = next_id;
response.result1 = size;
-#define SERVER_OVERHEAD (RTEMS_offsetof(rtems_monitor_server_response_t, \
+#define SERVER_OVERHEAD (offsetof(rtems_monitor_server_response_t, \
payload))
status = rtems_message_queue_send(request.return_id,
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
@@ -34,12 +34,6 @@
#endif
/**
- * This macro is used to obtain the offset of a field in a structure.
- */
-#define RTEMS_offsetof(type, field) \
- ((uintptr_t) &(((type *) 0)->field))
-
-/**
* The following is the extern for the RTEMS version string.
*
* @note The contents of this string are CPU specific.
--
Generated by Deluxe Loginfo [http://www.codewiz.org/projects/index.html#loginfo] 2.122 by Bernardo Innocenti <bernie at develer.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/vc/attachments/20111128/8b975359/attachment-0001.html>
More information about the vc
mailing list