change log for rtems (2011-09-09)
rtems-vc at rtems.org
rtems-vc at rtems.org
Fri Sep 9 11:10:13 UTC 2011
*sh*:
2011-09-09 Sebastian Huber <sebastian.huber at embedded-brains.de>
* score/include/rtems/score/basedefs.h: Typo.
* score/src/mpci.c, rtems/src/eventmp.c, rtems/src/msgmp.c,
rtems/src/partmp.c, rtems/src/regionmp.c, rtems/src/semmp.c,
rtems/src/signalmp.c, rtems/src/taskmp.c: Use RTEMS_STATIC_ASSERT() to
ensure that the packet size is small enough.
M 1.2914 cpukit/ChangeLog
M 1.16 cpukit/rtems/src/eventmp.c
M 1.30 cpukit/rtems/src/msgmp.c
M 1.20 cpukit/rtems/src/partmp.c
M 1.23 cpukit/rtems/src/regionmp.c
M 1.23 cpukit/rtems/src/semmp.c
M 1.15 cpukit/rtems/src/signalmp.c
M 1.20 cpukit/rtems/src/taskmp.c
M 1.6 cpukit/score/include/rtems/score/basedefs.h
M 1.38 cpukit/score/src/mpci.c
diff -u rtems/cpukit/ChangeLog:1.2913 rtems/cpukit/ChangeLog:1.2914
--- rtems/cpukit/ChangeLog:1.2913 Fri Sep 2 08:17:34 2011
+++ rtems/cpukit/ChangeLog Fri Sep 9 05:57:57 2011
@@ -1,3 +1,11 @@
+2011-09-09 Sebastian Huber <sebastian.huber at embedded-brains.de>
+
+ * score/include/rtems/score/basedefs.h: Typo.
+ * score/src/mpci.c, rtems/src/eventmp.c, rtems/src/msgmp.c,
+ rtems/src/partmp.c, rtems/src/regionmp.c, rtems/src/semmp.c,
+ rtems/src/signalmp.c, rtems/src/taskmp.c: Use RTEMS_STATIC_ASSERT() to
+ ensure that the packet size is small enough.
+
2011-09-02 Sebastian Huber <sebastian.huber at embedded-brains.de>
* libmisc/monitor/mon-monitor.c: Removed "exit" and "quit" commands to
diff -u rtems/cpukit/rtems/src/eventmp.c:1.15 rtems/cpukit/rtems/src/eventmp.c:1.16
--- rtems/cpukit/rtems/src/eventmp.c:1.15 Sun Jul 24 18:55:10 2011
+++ rtems/cpukit/rtems/src/eventmp.c Fri Sep 9 05:57:58 2011
@@ -26,6 +26,11 @@
#include <rtems/score/thread.h>
#include <rtems/rtems/support.h>
+RTEMS_STATIC_ASSERT(
+ sizeof(Event_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
+ Event_MP_Packet
+);
+
/*
* _Event_MP_Send_process_packet
*
diff -u rtems/cpukit/rtems/src/msgmp.c:1.29 rtems/cpukit/rtems/src/msgmp.c:1.30
--- rtems/cpukit/rtems/src/msgmp.c:1.29 Sun Jul 24 18:55:10 2011
+++ rtems/cpukit/rtems/src/msgmp.c Fri Sep 9 05:57:58 2011
@@ -27,6 +27,14 @@
#include <rtems/score/watchdog.h>
#include <rtems/rtems/support.h>
+#define MESSAGE_QUEUE_MP_PACKET_SIZE \
+ offsetof(Message_queue_MP_Packet, Buffer.buffer)
+
+RTEMS_STATIC_ASSERT(
+ MESSAGE_QUEUE_MP_PACKET_SIZE <= MP_PACKET_MINIMUM_PACKET_SIZE,
+ Message_queue_MP_Packet
+);
+
/*
* _Message_queue_MP_Send_process_packet
*
diff -u rtems/cpukit/rtems/src/partmp.c:1.19 rtems/cpukit/rtems/src/partmp.c:1.20
--- rtems/cpukit/rtems/src/partmp.c:1.19 Sun Jul 24 18:55:10 2011
+++ rtems/cpukit/rtems/src/partmp.c Fri Sep 9 05:57:58 2011
@@ -26,6 +26,11 @@
#include <rtems/score/thread.h>
#include <rtems/rtems/support.h>
+RTEMS_STATIC_ASSERT(
+ sizeof(Partition_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
+ Partition_MP_Packet
+);
+
/*
* _Partition_MP_Send_process_packet
*
diff -u rtems/cpukit/rtems/src/regionmp.c:1.22 rtems/cpukit/rtems/src/regionmp.c:1.23
--- rtems/cpukit/rtems/src/regionmp.c:1.22 Sun Jul 24 18:55:11 2011
+++ rtems/cpukit/rtems/src/regionmp.c Fri Sep 9 05:57:58 2011
@@ -26,6 +26,11 @@
#include <rtems/score/thread.h>
#include <rtems/rtems/support.h>
+RTEMS_STATIC_ASSERT(
+ sizeof(Region_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
+ Region_MP_Packet
+);
+
/*
* _Region_MP_Send_process_packet
*
diff -u rtems/cpukit/rtems/src/semmp.c:1.22 rtems/cpukit/rtems/src/semmp.c:1.23
--- rtems/cpukit/rtems/src/semmp.c:1.22 Sun Jul 24 18:55:11 2011
+++ rtems/cpukit/rtems/src/semmp.c Fri Sep 9 05:57:58 2011
@@ -27,6 +27,11 @@
#include <rtems/score/watchdog.h>
#include <rtems/rtems/support.h>
+RTEMS_STATIC_ASSERT(
+ sizeof(Semaphore_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
+ Semaphore_MP_Packet
+);
+
/*
* _Semaphore_MP_Send_process_packet
*
diff -u rtems/cpukit/rtems/src/signalmp.c:1.14 rtems/cpukit/rtems/src/signalmp.c:1.15
--- rtems/cpukit/rtems/src/signalmp.c:1.14 Sun Jul 24 18:55:11 2011
+++ rtems/cpukit/rtems/src/signalmp.c Fri Sep 9 05:57:58 2011
@@ -28,6 +28,11 @@
#include <rtems/score/watchdog.h>
#include <rtems/rtems/support.h>
+RTEMS_STATIC_ASSERT(
+ sizeof(Signal_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
+ Signal_MP_Packet
+);
+
/*
* _Signal_MP_Send_process_packet
*
diff -u rtems/cpukit/rtems/src/taskmp.c:1.19 rtems/cpukit/rtems/src/taskmp.c:1.20
--- rtems/cpukit/rtems/src/taskmp.c:1.19 Sun Jul 24 18:55:12 2011
+++ rtems/cpukit/rtems/src/taskmp.c Fri Sep 9 05:57:58 2011
@@ -27,6 +27,11 @@
#include <rtems/score/watchdog.h>
#include <rtems/rtems/support.h>
+RTEMS_STATIC_ASSERT(
+ sizeof(RTEMS_tasks_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
+ RTEMS_tasks_MP_Packet
+);
+
/*
* _RTEMS_tasks_MP_Send_process_packet
*
diff -u rtems/cpukit/score/include/rtems/score/basedefs.h:1.5 rtems/cpukit/score/include/rtems/score/basedefs.h:1.6
--- rtems/cpukit/score/include/rtems/score/basedefs.h:1.5 Thu Jul 21 07:00:20 2011
+++ rtems/cpukit/score/include/rtems/score/basedefs.h Fri Sep 9 05:57:58 2011
@@ -166,7 +166,7 @@
#endif
#define RTEMS_STATIC_ASSERT(cond, msg) \
- typedef int rtems_static_assert ## msg [(cond) ? 1 : -1]
+ typedef int rtems_static_assert_ ## msg [(cond) ? 1 : -1]
#ifndef ASM
#ifdef RTEMS_DEPRECATED_TYPES
diff -u rtems/cpukit/score/src/mpci.c:1.37 rtems/cpukit/score/src/mpci.c:1.38
--- rtems/cpukit/score/src/mpci.c:1.37 Sun Jul 24 18:55:13 2011
+++ rtems/cpukit/score/src/mpci.c Fri Sep 9 05:57:58 2011
@@ -34,6 +34,11 @@
#include <rtems/score/coresem.h>
#include <rtems/config.h>
+RTEMS_STATIC_ASSERT(
+ sizeof(MPCI_Internal_packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
+ MPCI_Internal_packet
+);
+
/**
* This is the core semaphore which the MPCI Receive Server blocks on.
*/
*sh*:
2011-09-09 Sebastian Huber <sebastian.huber at embedded-brains.de>
PR 1873/cpukit
* score/include/rtems/score/heap.h: Revert previous commit.
* sapi/include/confdefs.h: Use proper constants in
_Configure_From_workspace().
M 1.2915 cpukit/ChangeLog
M 1.171 cpukit/sapi/include/confdefs.h
M 1.47 cpukit/score/include/rtems/score/heap.h
diff -u rtems/cpukit/ChangeLog:1.2914 rtems/cpukit/ChangeLog:1.2915
--- rtems/cpukit/ChangeLog:1.2914 Fri Sep 9 05:57:57 2011
+++ rtems/cpukit/ChangeLog Fri Sep 9 06:02:02 2011
@@ -1,5 +1,12 @@
2011-09-09 Sebastian Huber <sebastian.huber at embedded-brains.de>
+ PR 1873/cpukit
+ * score/include/rtems/score/heap.h: Revert previous commit.
+ * sapi/include/confdefs.h: Use proper constants in
+ _Configure_From_workspace().
+
+2011-09-09 Sebastian Huber <sebastian.huber at embedded-brains.de>
+
* score/include/rtems/score/basedefs.h: Typo.
* score/src/mpci.c, rtems/src/eventmp.c, rtems/src/msgmp.c,
rtems/src/partmp.c, rtems/src/regionmp.c, rtems/src/semmp.c,
diff -u rtems/cpukit/sapi/include/confdefs.h:1.170 rtems/cpukit/sapi/include/confdefs.h:1.171
--- rtems/cpukit/sapi/include/confdefs.h:1.170 Thu Sep 1 13:13:54 2011
+++ rtems/cpukit/sapi/include/confdefs.h Fri Sep 9 06:02:03 2011
@@ -867,7 +867,7 @@
* may be applied.
*/
#define _Configure_From_workspace(_size) \
- (ssize_t)((_size) + (2 * sizeof(uint32_t)) + CPU_ALIGNMENT)
+ (ssize_t)((_size) + HEAP_BLOCK_HEADER_SIZE + CPU_HEAP_ALIGNMENT - 1)
/**
* Do not use the unlimited bit as part of the multiplication
diff -u rtems/cpukit/score/include/rtems/score/heap.h:1.46 rtems/cpukit/score/include/rtems/score/heap.h:1.47
--- rtems/cpukit/score/include/rtems/score/heap.h:1.46 Sun Aug 21 14:51:41 2011
+++ rtems/cpukit/score/include/rtems/score/heap.h Fri Sep 9 06:02:03 2011
@@ -177,9 +177,7 @@
} Heap_Protection_block_end;
#define HEAP_PROTECTION_HEADER_SIZE \
- (sizeof(Heap_Protection_block_begin) + \
- CPU_ALIGNMENT + \
- sizeof(Heap_Protection_block_end))
+ (sizeof(Heap_Protection_block_begin) + sizeof(Heap_Protection_block_end))
#endif
/**
--
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/20110909/f21445c2/attachment-0001.html>
More information about the vc
mailing list