4.104.115
Last change
on this file since d5ae827 was
82478ffc,
checked in by Joel Sherrill <joel.sherrill@…>, on 10/02/08 at 20:57:28
|
2008-10-02 Joel Sherrill <joel.sherrill@…>
- sp09/screen01.c, sp09/screen12.c, sp25/system.h, sp25/task1.c,
sp28/init.c, sp39/init.c, sp41/init.c, spfatal01/testcase.h,
spfatal08/testcase.h: Change size_t to ssize_t on all Heap, Workspace
and Region calls. On 16-bit architectures, size_t can be 16-bits
which would limit sizes to 64K. Also address constants which
overflowed on 16-bit integer targets.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * Classic API Init task create failure |
---|
3 | * |
---|
4 | * $Id$ |
---|
5 | */ |
---|
6 | |
---|
7 | /* |
---|
8 | * Way too much stack space. Should generate a fatal error |
---|
9 | * on the init task create. |
---|
10 | */ |
---|
11 | #define CONFIGURE_HAS_OWN_INIT_TASK_TABLE |
---|
12 | #define CONFIGURE_INIT_TASK_STACK_SIZE 0 |
---|
13 | rtems_initialization_tasks_table Initialization_tasks[] = { |
---|
14 | { rtems_build_name('I', 'N', 'I', ' '), |
---|
15 | 32UL * 1024UL, |
---|
16 | 1, |
---|
17 | RTEMS_DEFAULT_ATTRIBUTES, |
---|
18 | Init, |
---|
19 | RTEMS_DEFAULT_MODES, |
---|
20 | 0 |
---|
21 | } |
---|
22 | }; |
---|
23 | #define CONFIGURE_INIT_TASK_TABLE Initialization_tasks |
---|
24 | #define CONFIGURE_INIT_TASK_TABLE_SIZE \ |
---|
25 | sizeof(CONFIGURE_INIT_TASK_TABLE) / sizeof(rtems_initialization_tasks_table) |
---|
26 | |
---|
27 | #define FATAL_ERROR_DESCRIPTION "Classic API Init task create failure" |
---|
28 | #define FATAL_ERROR_EXPECTED_SOURCE INTERNAL_ERROR_RTEMS_API |
---|
29 | #define FATAL_ERROR_EXPECTED_IS_INTERNAL TRUE |
---|
30 | #define FATAL_ERROR_EXPECTED_ERROR RTEMS_UNSATISFIED |
---|
31 | |
---|
32 | void force_error() |
---|
33 | { |
---|
34 | /* |
---|
35 | * Case 2: Null entry |
---|
36 | * Case 3: semaphore_create |
---|
37 | * _Thread_Disable_dispatch |
---|
38 | * semaphore_obtain |
---|
39 | */ |
---|
40 | |
---|
41 | /* we will not run this far */ |
---|
42 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.