source: rtems/c/src/exec/score/headers/wkspace.h @ 60b791ad

4.104.114.84.95
Last change on this file since 60b791ad was 60b791ad, checked in by Joel Sherrill <joel.sherrill@…>, on 02/17/98 at 23:46:28

updated copyright to 1998

  • Property mode set to 100644
File size: 1.5 KB
RevLine 
[ac7d5ef0]1/*  wkspace.h
2 *
[3a4ae6c]3 *  This include file contains information related to the
[ac7d5ef0]4 *  RAM Workspace.  This Handler provides mechanisms which can be used to
[3a4ae6c]5 *  define, initialize and manipulate the workspace.
[ac7d5ef0]6 *
[60b791ad]7 *  COPYRIGHT (c) 1989-1998.
[ac7d5ef0]8 *  On-Line Applications Research Corporation (OAR).
[03f2154e]9 *  Copyright assigned to U.S. Government, 1994.
[ac7d5ef0]10 *
[98e4ebf5]11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
[03f2154e]13 *  http://www.OARcorp.com/rtems/license.html.
[ac7d5ef0]14 *
[da6375b]15 *  $Id$
[ac7d5ef0]16 */
17
[3a4ae6c]18#ifndef __WORKSPACE_h
19#define __WORKSPACE_h
[ac7d5ef0]20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
[5e9b32b]25#include <rtems/score/heap.h>
26#include <rtems/score/interr.h>
[ac7d5ef0]27
28/*
[3a4ae6c]29 *  The following is used to manage the Workspace.
[ac7d5ef0]30 *
31 */
32
[c627b2a3]33SCORE_EXTERN Heap_Control _Workspace_Area;  /* executive heap header */
[ac7d5ef0]34
[a155b3c]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
[ac7d5ef0]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
[3a4ae6c]55 *  from the workspace, then the internal error handler is invoked.
[ac7d5ef0]56 */
57
[45819022]58void *_Workspace_Allocate_or_fatal_error(
[ac7d5ef0]59  unsigned32   size
60);
61
[1a8fde6c]62#ifndef __RTEMS_APPLICATION__
[5e9b32b]63#include <rtems/score/wkspace.inl>
[1a8fde6c]64#endif
[ac7d5ef0]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.