Changeset d689de0 in rtems


Ignore:
Timestamp:
Sep 9, 2011, 10:57:58 AM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
5817297
Parents:
f604a94
Message:

2011-09-09 Sebastian Huber <sebastian.huber@…>

  • 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.
Location:
cpukit
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf604a94 rd689de0  
     12011-09-09      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * score/include/rtems/score/basedefs.h: Typo.
     4        * score/src/mpci.c, rtems/src/eventmp.c, rtems/src/msgmp.c,
     5        rtems/src/partmp.c, rtems/src/regionmp.c, rtems/src/semmp.c,
     6        rtems/src/signalmp.c, rtems/src/taskmp.c: Use RTEMS_STATIC_ASSERT() to
     7        ensure that the packet size is small enough.
     8
    192011-09-02      Sebastian Huber <sebastian.huber@embedded-brains.de>
    210
  • cpukit/rtems/src/eventmp.c

    rf604a94 rd689de0  
    2626#include <rtems/score/thread.h>
    2727#include <rtems/rtems/support.h>
     28
     29RTEMS_STATIC_ASSERT(
     30  sizeof(Event_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
     31  Event_MP_Packet
     32);
    2833
    2934/*
  • cpukit/rtems/src/msgmp.c

    rf604a94 rd689de0  
    2727#include <rtems/score/watchdog.h>
    2828#include <rtems/rtems/support.h>
     29
     30#define MESSAGE_QUEUE_MP_PACKET_SIZE \
     31  offsetof(Message_queue_MP_Packet, Buffer.buffer)
     32
     33RTEMS_STATIC_ASSERT(
     34  MESSAGE_QUEUE_MP_PACKET_SIZE <= MP_PACKET_MINIMUM_PACKET_SIZE,
     35  Message_queue_MP_Packet
     36);
    2937
    3038/*
  • cpukit/rtems/src/partmp.c

    rf604a94 rd689de0  
    2727#include <rtems/rtems/support.h>
    2828
     29RTEMS_STATIC_ASSERT(
     30  sizeof(Partition_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
     31  Partition_MP_Packet
     32);
     33
    2934/*
    3035 *  _Partition_MP_Send_process_packet
  • cpukit/rtems/src/regionmp.c

    rf604a94 rd689de0  
    2727#include <rtems/rtems/support.h>
    2828
     29RTEMS_STATIC_ASSERT(
     30  sizeof(Region_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
     31  Region_MP_Packet
     32);
     33
    2934/*
    3035 *  _Region_MP_Send_process_packet
  • cpukit/rtems/src/semmp.c

    rf604a94 rd689de0  
    2828#include <rtems/rtems/support.h>
    2929
     30RTEMS_STATIC_ASSERT(
     31  sizeof(Semaphore_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
     32  Semaphore_MP_Packet
     33);
     34
    3035/*
    3136 *  _Semaphore_MP_Send_process_packet
  • cpukit/rtems/src/signalmp.c

    rf604a94 rd689de0  
    2828#include <rtems/score/watchdog.h>
    2929#include <rtems/rtems/support.h>
     30
     31RTEMS_STATIC_ASSERT(
     32  sizeof(Signal_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
     33  Signal_MP_Packet
     34);
    3035
    3136/*
  • cpukit/rtems/src/taskmp.c

    rf604a94 rd689de0  
    2828#include <rtems/rtems/support.h>
    2929
     30RTEMS_STATIC_ASSERT(
     31  sizeof(RTEMS_tasks_MP_Packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
     32  RTEMS_tasks_MP_Packet
     33);
     34
    3035/*
    3136 *  _RTEMS_tasks_MP_Send_process_packet
  • cpukit/score/include/rtems/score/basedefs.h

    rf604a94 rd689de0  
    167167
    168168#define RTEMS_STATIC_ASSERT(cond, msg) \
    169   typedef int rtems_static_assert ## msg [(cond) ? 1 : -1]
     169  typedef int rtems_static_assert_ ## msg [(cond) ? 1 : -1]
    170170
    171171#ifndef ASM
  • cpukit/score/src/mpci.c

    rf604a94 rd689de0  
    3434#include <rtems/score/coresem.h>
    3535#include <rtems/config.h>
     36
     37RTEMS_STATIC_ASSERT(
     38  sizeof(MPCI_Internal_packet) <= MP_PACKET_MINIMUM_PACKET_SIZE,
     39  MPCI_Internal_packet
     40);
    3641
    3742/**
Note: See TracChangeset for help on using the changeset viewer.