2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>

PR 1347/cpukit
	* Makefile.am, configure.ac, sp30/resume.c, sp30/task1.c, sp31/delay.c:
	Rework Timer Server to ensure that the context allows for blocking,
	allocating memory, and acquiring semaphores and mutexes.
	* sp45/.cvsignore, sp45/Makefile.am, sp45/sp45.doc, sp45/sp45.scn:
	New files.
This commit is contained in:
Joel Sherrill
2008-12-03 21:00:35 +00:00
parent 22629eeaa6
commit 58b727f6b0
10 changed files with 81 additions and 4 deletions

View File

@@ -1,3 +1,12 @@
2008-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1347/cpukit
* Makefile.am, configure.ac, sp30/resume.c, sp30/task1.c, sp31/delay.c:
Rework Timer Server to ensure that the context allows for blocking,
allocating memory, and acquiring semaphores and mutexes.
* sp45/.cvsignore, sp45/Makefile.am, sp45/sp45.doc, sp45/sp45.scn:
New files.
2008-09-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* sp19/system.h: Use "double" instead of "rtems_double".

View File

@@ -8,7 +8,7 @@ ACLOCAL_AMFLAGS = -I ../aclocal
SUBDIRS = sp01 sp02 sp03 sp04 sp05 sp06 sp07 sp08 sp09 sp11 sp12 sp13 sp14 \
sp15 sp16 sp17 sp19 sp20 sp21 sp22 sp23 sp24 sp25 sp26 sp27 sp28 sp29 \
sp30 sp31 sp32 sp33 sp34 sp35 sp37 sp38 sp39 sp40 sp41 sp42 sp43 sp44 \
spsize spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 \
sp45 spsize spfatal01 spfatal02 spfatal03 spfatal04 spfatal05 spfatal06 \
spfatal07 spfatal08 spfatal09 spfatal10
DIST_SUBDIRS = $(SUBDIRS) spfatal spfatal_support

View File

@@ -69,6 +69,7 @@ sp41/Makefile
sp42/Makefile
sp43/Makefile
sp44/Makefile
sp45/Makefile
spsize/Makefile
spfatal/Makefile
spfatal01/Makefile

View File

@@ -29,5 +29,5 @@ rtems_timer_service_routine Resume_task(
task_to_resume = Task_id[ rtems_object_id_get_index( timer_id ) ];
status = rtems_task_resume( task_to_resume );
directive_failed_with_level( status, "rtems_task_resume", 1 );
directive_failed( status, "rtems_task_resume" );
}

View File

@@ -36,7 +36,7 @@ rtems_task Task_1_through_3(
Timer_id[ argument ],
(task_number( tid ) - 1) * 5 * TICKS_PER_SECOND,
Resume_task,
NULL
(void *) tid
);
directive_failed( status, "rtems_timer_server_fire_after failed" );

View File

@@ -27,5 +27,5 @@ rtems_timer_service_routine Delayed_resume(
rtems_status_code status;
status = rtems_task_resume( Task_id[ 1 ] );
directive_failed_with_level( status, "rtems_task_resume of self", 1 );
directive_failed( status, "rtems_task_resume of self" );
}

View File

@@ -0,0 +1,2 @@
Makefile
Makefile.in

View File

@@ -0,0 +1,28 @@
##
## $Id$
##
MANAGERS = all
rtems_tests_PROGRAMS = sp45.exe
sp45_exe_SOURCES = init.c
dist_rtems_tests_DATA = sp45.scn
dist_rtems_tests_DATA += sp45.doc
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
sp45_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
LINK_OBJS = $(sp45_exe_OBJECTS) $(sp45_exe_LDADD)
LINK_LIBS = $(sp45_exe_LDLIBS)
sp45.exe$(EXEEXT): $(sp45_exe_OBJECTS) $(sp45_exe_DEPENDENCIES)
@rm -f sp45.exe$(EXEEXT)
$(make-exe)
include $(top_srcdir)/../automake/local.am

View File

@@ -0,0 +1,22 @@
#
# $Id$
#
# COPYRIGHT (c) 1989-2002.
# On-Line Applications Research Corporation (OAR).
#
# The license and distribution terms for this file may be
# found in the file LICENSE in this distribution or at
# http://www.rtems.com/license/LICENSE.
#
This file describes the directives and concepts tested by this test set.
test set name: test44
directives:
concepts:
allocating memory from a Timer Service Routine fired from a server
delaying in a Timer Service Routine fired from a server

View File

@@ -0,0 +1,15 @@
*** TEST 45 ***
INIT - rtems_timer_create - creating timer 1
INIT - timer 1 has id (0x12010001)
INIT - rtems_timer_create - creating timer 2
INIT - timer 2 has id (0x12010002)
TA1 - rtems_timer_server_fire_after - timer 1 in 1 seconds
TA1 - rtems_task_wake_after - 2 second
TSR: calling malloc
TSR: calling free
TSR: delaying with rtems_task_wake_after
TSR appears to have executed OK
TA1 - timer_deleting - timer 1
*** END OF TEST 45 ***