source: rtems/c/src/exec/score/src/wkspace.c @ 152e31a

4.104.114.84.95
Last change on this file since 152e31a was 152e31a, checked in by Joel Sherrill <joel.sherrill@…>, on 05/25/95 at 15:26:53

TEST

  • Property mode set to 100644
File size: 997 bytes
Line 
1/*
2 *  Workspace Handler
3 *
4 *  JUNK
5 *
6 *  NOTE:
7 *
8 *  This file only exists to contain the one function which cannot
9 *  be written as a macro when "static inlines" are not used.
10 *
11 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
12 *  On-Line Applications Research Corporation (OAR).
13 *  All rights assigned to U.S. Government, 1994.
14 *
15 *  This material may be reproduced by or for the U.S. Government pursuant
16 *  to the copyright license under the clause at DFARS 252.227-7013.  This
17 *  notice must appear in all copies of this file and its derivatives.
18 *
19 *  $Id$
20 */
21
22#include <rtems/system.h>
23#include <rtems/wkspace.h>
24#include <rtems/fatal.h>
25
26#ifndef USE_INLINES
27
28/*PAGE
29 *
30 *  _Workspace_Allocate_or_fatal_error
31 *
32 */
33
34void *_Workspace_Allocate_or_fatal_error(
35  unsigned32   size
36)
37{
38  void        *memory;
39
40  memory = _Workspace_Allocate( size );
41
42  if ( memory == NULL )
43    rtems_fatal_error_occurred( RTEMS_UNSATISFIED );
44
45  return memory;
46}
47
48#endif   /* USE_INLINES */
49
Note: See TracBrowser for help on using the repository browser.