source: rtems/cpukit/score/include/rtems/score/wkspace.h @ 98e4ebf5

4.104.114.84.95
Last change on this file since 98e4ebf5 was 98e4ebf5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/97 at 15:45:54

Fixed typo in the pointer to the license terms.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*  wkspace.h
2 *
3 *  This include file contains information related to the
4 *  RAM Workspace.  This Handler provides mechanisms which can be used to
5 *  define, initialize and manipulate the workspace.
6 *
7 *  COPYRIGHT (c) 1989-1997.
8 *  On-Line Applications Research Corporation (OAR).
9 *  Copyright assigned to U.S. Government, 1994.
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.OARcorp.com/rtems/license.html.
14 *
15 *  $Id$
16 */
17
18#ifndef __WORKSPACE_h
19#define __WORKSPACE_h
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include <rtems/score/heap.h>
26#include <rtems/score/interr.h>
27
28/*
29 *  The following is used to manage the Workspace.
30 *
31 */
32
33SCORE_EXTERN Heap_Control _Workspace_Area;  /* executive heap header */
34
35/*
36 *  _Workspace_Handler_initialization
37 *
38 *  DESCRIPTION:
39 *
40 *  This routine performs the initialization necessary for this handler.
41 */
42 
43void _Workspace_Handler_initialization(
44  void       *starting_address,
45  unsigned32  size
46);
47
48/*
49 *  _Workspace_Allocate_or_fatal_error
50 *
51 *  DESCRIPTION:
52 *
53 *  This routine returns the address of a block of memory of size
54 *  bytes.  If a block of the appropriate size cannot be allocated
55 *  from the workspace, then the internal error handler is invoked.
56 */
57
58void *_Workspace_Allocate_or_fatal_error(
59  unsigned32   size
60);
61
62#ifndef __RTEMS_APPLICATION__
63#include <rtems/score/wkspace.inl>
64#endif
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif
71/* end of include file */
Note: See TracBrowser for help on using the repository browser.