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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [inline/] [rtems/] [score/] [wkspace.inl] - Blame information for rev 173

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  wkspace.inl
2
 *
3
 *  This include file contains the bodies of the routines which contains
4
 *  information related to the RAM Workspace.
5
 *
6
 *  COPYRIGHT (c) 1989-1999.
7
 *  On-Line Applications Research Corporation (OAR).
8
 *
9
 *  The license and distribution terms for this file may be
10
 *  found in the file LICENSE in this distribution or at
11
 *  http://www.OARcorp.com/rtems/license.html.
12
 *
13
 *  $Id: wkspace.inl,v 1.2 2001-09-27 11:59:34 chris Exp $
14
 */
15
 
16
#ifndef __WORKSPACE_inl
17
#define __WORKSPACE_inl
18
 
19
/*PAGE
20
 *
21
 *  _Workspace_Allocate
22
 *
23
 *  DESCRIPTION:
24
 *
25
 *  This routine returns the address of a block of memory of size
26
 *  bytes.  If a block of the appropriate size cannot be allocated
27
 *  from the workspace, then NULL is returned.
28
 */
29
 
30
RTEMS_INLINE_ROUTINE void *_Workspace_Allocate(
31
  unsigned32 size
32
)
33
{
34
   return _Heap_Allocate( &_Workspace_Area, size );
35
}
36
 
37
/*PAGE
38
 *
39
 *  _Workspace_Free
40
 *
41
 *  DESCRIPTION:
42
 *
43
 *  This function frees the specified block of memory.  If the block
44
 *  belongs to the Workspace and can be successfully freed, then
45
 *  TRUE is returned.  Otherwise FALSE is returned.
46
 */
47
 
48
RTEMS_INLINE_ROUTINE boolean _Workspace_Free(
49
  void *block
50
)
51
{
52
   return _Heap_Free( &_Workspace_Area, block );
53
}
54
 
55
#endif
56
/* end of include file */

powered by: WebSVN 2.1.0

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