4.104.114.84.95
Last change
on this file since 45819022 was
45819022,
checked in by Joel Sherrill <joel.sherrill@…>, on 08/16/95 at 19:42:41
|
bug fixes to make macro implementations work
|
-
Property mode set to
100644
|
File size:
854 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Workspace Handler |
---|
3 | * |
---|
4 | * XXX |
---|
5 | * |
---|
6 | * NOTE: |
---|
7 | * |
---|
8 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
9 | * On-Line Applications Research Corporation (OAR). |
---|
10 | * All rights assigned to U.S. Government, 1994. |
---|
11 | * |
---|
12 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
13 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
14 | * notice must appear in all copies of this file and its derivatives. |
---|
15 | * |
---|
16 | * wkspace.c,v 1.4 1995/05/25 15:26:53 joel Exp |
---|
17 | */ |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/wkspace.h> |
---|
21 | #include <rtems/fatal.h> |
---|
22 | |
---|
23 | /*PAGE |
---|
24 | * |
---|
25 | * _Workspace_Allocate_or_fatal_error |
---|
26 | * |
---|
27 | */ |
---|
28 | |
---|
29 | void *_Workspace_Allocate_or_fatal_error( |
---|
30 | unsigned32 size |
---|
31 | ) |
---|
32 | { |
---|
33 | void *memory; |
---|
34 | |
---|
35 | memory = _Workspace_Allocate( size ); |
---|
36 | |
---|
37 | if ( memory == NULL ) |
---|
38 | rtems_fatal_error_occurred( RTEMS_UNSATISFIED ); |
---|
39 | |
---|
40 | return memory; |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.