source: rtems/cpukit/include/rtems/extensiondata.h @ 21275b58

Last change on this file since 21275b58 was 21275b58, checked in by Sebastian Huber <sebastian.huber@…>, on Nov 22, 2018 at 6:14:51 PM

score: Static Objects_Information initialization

Statically allocate the objects information together with the initial
set of objects either via <rtems/confdefs.h>. Provide default object
informations with zero objects via librtemscpu.a. This greatly
simplifies the workspace size estimate. RTEMS applications which do not
use the unlimited objects option are easier to debug since all objects
reside now in statically allocated objects of the right types.

Close #3621.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup ClassicUserExtensionsImpl
5 *
6 * @brief Classic User Extensions Data Structures
7 */
8
9/*
10 *  COPYRIGHT (c) 1989-2008.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.org/license/LICENSE.
16 */
17
18#ifndef _RTEMS_EXTENSIONDATA_H
19#define _RTEMS_EXTENSIONDATA_H
20
21#include <rtems/extension.h>
22#include <rtems/score/objectdata.h>
23#include <rtems/score/userextdata.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/**
30 * @addtogroup ClassicUserExtensionsImpl
31 *
32 * @{
33 */
34
35typedef struct {
36  Objects_Control          Object;
37  User_extensions_Control  Extension;
38}   Extension_Control;
39
40/**
41 * @brief The Classic Extensions objects information.
42 */
43extern Objects_Information _Extension_Information;
44
45/**
46 * @brief Macro to define the objects information for the Classic Extensions
47 * objects.
48 *
49 * This macro should only be used by <rtems/confdefs.h>.
50 *
51 * @param max The configured object maximum (the OBJECTS_UNLIMITED_OBJECTS flag
52 * may be set).
53 */
54#define EXTENSION_INFORMATION_DEFINE( max ) \
55  OBJECTS_INFORMATION_DEFINE( \
56    _Extension, \
57    OBJECTS_CLASSIC_API, \
58    OBJECTS_RTEMS_EXTENSIONS, \
59    Extension_Control, \
60    max, \
61    OBJECTS_NO_STRING_NAME, \
62    NULL \
63  )
64
65/** @} */
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif
72/* end of include file */
Note: See TracBrowser for help on using the repository browser.