4.104.114.84.95
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 | * $Id$ |
---|
17 | */ |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/score/wkspace.h> |
---|
21 | #include <rtems/score/interr.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 | _Internal_error_Occurred( |
---|
39 | INTERNAL_ERROR_CORE, |
---|
40 | TRUE, |
---|
41 | INTERNAL_ERROR_WORKSPACE_ALLOCATION |
---|
42 | ); |
---|
43 | |
---|
44 | return memory; |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.