mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 21:23:53 +08:00
2004-10-29 Ralf Corsepius <ralf_corsepius@rtems.org>
* score/src/coremsg.c: Eliminate unsigned32. * score/include/rtems/system.h: Set __RTEMS_REVISION__ to 99. * librpc/include/rpc/xdr.h: Use elipsis in xdrproc_t prototype.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2004-10-29 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* score/src/coremsg.c: Eliminate unsigned32.
|
||||
* score/include/rtems/system.h: Set __RTEMS_REVISION__ to 99.
|
||||
* librpc/include/rpc/xdr.h: Use elipsis in xdrproc_t prototype.
|
||||
|
||||
2004-10-28 Ralf Corsepius <ralf_corsepius@rtems.org>
|
||||
|
||||
* libcsupport/include/inttypes.h: #include <sys/_inttypes.h>
|
||||
|
||||
@@ -135,7 +135,7 @@ typedef bool_t (*xdrproc_t) __P((XDR *, void *, u_int));
|
||||
/*
|
||||
* XXX can't actually prototype it, because some take two args!!!
|
||||
*/
|
||||
typedef bool_t (*xdrproc_t) __P((/* XDR *, void *, u_int */));
|
||||
typedef bool_t (*xdrproc_t) (XDR *, void *, ...);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
||||
@@ -27,7 +27,7 @@ extern "C" {
|
||||
*/
|
||||
#define __RTEMS_MAJOR__ 4
|
||||
#define __RTEMS_MINOR__ 6
|
||||
#define __RTEMS_REVISION__ 0
|
||||
#define __RTEMS_REVISION__ 99
|
||||
|
||||
/*
|
||||
* The cpu options include file defines all cpu dependent
|
||||
|
||||
@@ -51,12 +51,12 @@
|
||||
boolean _CORE_message_queue_Initialize(
|
||||
CORE_message_queue_Control *the_message_queue,
|
||||
CORE_message_queue_Attributes *the_message_queue_attributes,
|
||||
unsigned32 maximum_pending_messages,
|
||||
unsigned32 maximum_message_size
|
||||
uint32_t maximum_pending_messages,
|
||||
uint32_t maximum_message_size
|
||||
)
|
||||
{
|
||||
unsigned32 message_buffering_required;
|
||||
unsigned32 allocated_message_size;
|
||||
uint32_t message_buffering_required;
|
||||
uint32_t allocated_message_size;
|
||||
|
||||
the_message_queue->maximum_pending_messages = maximum_pending_messages;
|
||||
the_message_queue->number_of_pending_messages = 0;
|
||||
@@ -69,9 +69,9 @@ boolean _CORE_message_queue_Initialize(
|
||||
*/
|
||||
|
||||
allocated_message_size = maximum_message_size;
|
||||
if (allocated_message_size & (sizeof(unsigned32) - 1)) {
|
||||
allocated_message_size += sizeof(unsigned32);
|
||||
allocated_message_size &= ~(sizeof(unsigned32) - 1);
|
||||
if (allocated_message_size & (sizeof(uint32_t) - 1)) {
|
||||
allocated_message_size += sizeof(uint32_t);
|
||||
allocated_message_size &= ~(sizeof(uint32_t) - 1);
|
||||
}
|
||||
|
||||
if (allocated_message_size < maximum_message_size)
|
||||
|
||||
Reference in New Issue
Block a user