source: rtems/cpukit/score/src/wkspace.c @ ac7d5ef0

4.104.114.84.95
Last change on this file since ac7d5ef0 was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on May 11, 1995 at 5:39:37 PM

Initial revision

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