mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 17:36:15 +08:00
2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
* sp16/task1.c: Update for heap extend changes.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2010-06-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* sp16/task1.c: Update for heap extend changes.
|
||||
|
||||
2010-06-08 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
|
||||
|
||||
* spfifo01/init.c, spfifo01/spfifo01.scn: Update for IMFS API changes.
|
||||
|
||||
@@ -229,15 +229,28 @@ rtems_test_pause();
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_UNSATISFIED,
|
||||
"rtems_task_get_segment with no memory left"
|
||||
"rtems_region_get_segment with no memory left"
|
||||
);
|
||||
puts( "TA1 - rtems_task_get_segment - RTEMS_UNSATISFIED" );
|
||||
puts( "TA1 - rtems_region_get_segment - RTEMS_UNSATISFIED" );
|
||||
|
||||
puts( "TA1 - rtems_region_extend - extend region 4 by 4K" );
|
||||
puts( "TA1 - rtems_region_extend - extend region 4 by 1" );
|
||||
status = rtems_region_extend(
|
||||
Region_id[ 4 ],
|
||||
&Area_4[4096],
|
||||
4096
|
||||
1
|
||||
);
|
||||
fatal_directive_status(
|
||||
status,
|
||||
RTEMS_INVALID_ADDRESS,
|
||||
"rtems_region_extend with too small memory area"
|
||||
);
|
||||
puts( "TA1 - rtems_region_extend - RTEMS_INVALID_ADDRESS" );
|
||||
|
||||
puts( "TA1 - rtems_region_extend - extend region 4 by 4K - 1" );
|
||||
status = rtems_region_extend(
|
||||
Region_id[ 4 ],
|
||||
(char *) &Area_4[4096] + 1,
|
||||
4096 - 1
|
||||
);
|
||||
directive_failed( status, "rtems_region_extend" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user