OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [include/] [rtems/] [score/] [wkspace.h] - Blame information for rev 587

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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-1999.
8
 *  On-Line Applications Research Corporation (OAR).
9
 *
10
 *  The license and distribution terms for this file may be
11
 *  found in the file LICENSE in this distribution or at
12
 *  http://www.OARcorp.com/rtems/license.html.
13
 *
14
 *  $Id: wkspace.h,v 1.2 2001-09-27 11:59:32 chris Exp $
15
 */
16
 
17
#ifndef __WORKSPACE_h
18
#define __WORKSPACE_h
19
 
20
#ifdef __cplusplus
21
extern "C" {
22
#endif
23
 
24
#include <rtems/score/heap.h>
25
#include <rtems/score/interr.h>
26
 
27
/*
28
 *  The following is used to manage the Workspace.
29
 *
30
 */
31
 
32
SCORE_EXTERN Heap_Control _Workspace_Area;  /* executive heap header */
33
 
34
/*
35
 *  _Workspace_Handler_initialization
36
 *
37
 *  DESCRIPTION:
38
 *
39
 *  This routine performs the initialization necessary for this handler.
40
 */
41
 
42
void _Workspace_Handler_initialization(
43
  void       *starting_address,
44
  unsigned32  size
45
);
46
 
47
/*
48
 *  _Workspace_Allocate_or_fatal_error
49
 *
50
 *  DESCRIPTION:
51
 *
52
 *  This routine returns the address of a block of memory of size
53
 *  bytes.  If a block of the appropriate size cannot be allocated
54
 *  from the workspace, then the internal error handler is invoked.
55
 */
56
 
57
void *_Workspace_Allocate_or_fatal_error(
58
  unsigned32   size
59
);
60
 
61
#ifndef __RTEMS_APPLICATION__
62
#include <rtems/score/wkspace.inl>
63
#endif
64
 
65
#ifdef __cplusplus
66
}
67
#endif
68
 
69
#endif
70
/* end of include file */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.