2008-01-08 Joel Sherrill <joel.sherrill@OARcorp.com>

* Makefile.am, configure.ac: Add sp40 to test some cases of dynamic
	driver registration.
	* sp40/.cvsignore, sp40/Makefile.am, sp40/init.c, sp40/sp40.scn,
	sp40/system.h: New files.
This commit is contained in:
Joel Sherrill
2008-01-08 18:27:29 +00:00
parent bc2b8df658
commit c8f8ffdd08
8 changed files with 114 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
2008-01-08 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, configure.ac: Add sp40 to test some cases of dynamic
driver registration.
* sp40/.cvsignore, sp40/Makefile.am, sp40/init.c, sp40/sp40.scn,
sp40/system.h: New files.
2008-01-07 Joel Sherrill <joel.sherrill@oarcorp.com>
* sp09/screen07.c, sp09/screen12.c, sp09/screen14.c, sp09/sp09.scn

View File

@@ -7,7 +7,7 @@ ACLOCAL_AMFLAGS = -I ../aclocal
## spfatal is not included for now
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 spsize
sp30 sp31 sp32 sp33 sp34 sp35 sp37 sp38 sp39 sp40 spsize
DIST_SUBDIRS = $(SUBDIRS) spfatal
include $(top_srcdir)/../automake/subdirs.am

View File

@@ -64,6 +64,7 @@ sp36/Makefile
sp37/Makefile
sp38/Makefile
sp39/Makefile
sp40/Makefile
spsize/Makefile
spfatal/Makefile
])

View File

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

View File

@@ -0,0 +1,27 @@
##
## $Id$
##
MANAGERS = all
rtems_tests_PROGRAMS = sp40.exe
sp40_exe_SOURCES = init.c system.h
dist_rtems_tests_DATA = sp40.scn
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
include $(top_srcdir)/../automake/leaf.am
sp40_exe_LDADD = $(MANAGERS_NOT_WANTED:%=$(PROJECT_LIB)/no-%.rel)
AM_CPPFLAGS += -I$(top_srcdir)/../support/include
LINK_OBJS = $(sp40_exe_OBJECTS) $(sp40_exe_LDADD)
LINK_LIBS = $(sp40_exe_LDLIBS)
sp40.exe$(EXEEXT): $(sp40_exe_OBJECTS) $(sp40_exe_DEPENDENCIES)
@rm -f sp40.exe$(EXEEXT)
$(make-exe)
include $(top_srcdir)/../automake/local.am

View File

@@ -0,0 +1,38 @@
/*
* IO Manager Dynamic Registration
*
* COPYRIGHT (c) 1989-2007.
* 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.
*
* $Id$
*/
#define TEST_INIT
#include "system.h"
rtems_task Init(
rtems_task_argument argument
)
{
puts( "\n\n*** TEST 40 ***" );
/*
* Register two drivers to fill up the table
*/
/* add major = 4 */
/* add major = 3 */
/*
* Unregister major = 3 to leave slot which is not at
* the end of the Driver Table.
*/
puts( "*** END OF TEST 40 ***" );
rtems_test_exit( 0 );
}

View File

View File

@@ -0,0 +1,38 @@
/* system.h
*
* This include file contains information that is included in every
* function in the test set.
*
* COPYRIGHT (c) 1989-2007.
* 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.
*
* $Id$
*/
#include <tmacros.h>
/* functions */
rtems_task Init(
rtems_task_argument argument
);
/* configuration information */
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
/* more driver slots than are statically configured */
#define CONFIGURE_MAXIMUM_DRIVERS 4
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_MAXIMUM_TASKS 1
#include <rtems/confdefs.h>
/* end of include file */