Commit Graph

52 Commits

Author SHA1 Message Date
Ralf Corsepius
45215d2075 2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Remove PRIdoff_t.
2010-05-29 05:29:33 +00:00
Joel Sherrill
6196ded1d5 2010-04-22 Sebastian Huber <Sebastian.Huber@embedded-brains.de>
* support/include/tmacros.h: Changed check_dispatch_disable_level() to
	treat all non-zero values of _Thread_Dispatch_disable_level equally.
2010-04-28 16:37:20 +00:00
Glenn Humphrey
6cc1c294d6 2009-12-08 Glenn Humphrey <glenn.humphrey@OARcorp.com>
* support/include/test_support.h, support/include/tmacros.h,
	support/src/test_support.c: Added support functions to spin for a
	number of ticks and to spin until the next tick.
	* support/src/spin.c: New file.
2009-12-08 21:39:21 +00:00
Joel Sherrill
0654c588a8 2009-12-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* support/include/tmacros.h: Use rtems_test_assert() consistently
	instead of system assert(). rtems_test_assert() is designed to
	integrate into the RTEMS test suite infrastructure.
2009-12-08 17:53:04 +00:00
Ralf Corsepius
b1274bd94c Whitespace removal. 2009-11-30 03:33:25 +00:00
Joel Sherrill
1369978b7f 2009-11-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* support/include/tmacros.h: Add service to check status returned by
	POSIX methods which return a pointer which is -1 on error. This
	eliminated some casts.
2009-11-09 14:49:35 +00:00
Ralf Corsepius
f62c4673b6 2009-01-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Include rtems/score/thread.h.
	Remove _Thread_Dispatch_disable_level.
2009-11-03 04:29:40 +00:00
Ralf Corsepius
3699e143d3 Add PRIxino_t, PRIdoff_t, PRIxblksize_t, PRIxblkcnt_t.
Comment cleanups.
2009-11-01 06:38:59 +00:00
Ralf Corsepius
9ea82a5f69 Add PRIxrtems_task_priority, PRIxrtems_task_priority, PRIxrtems_signal_set. 2009-10-30 13:20:34 +00:00
Ralf Corsepius
01f1a20e86 Add PRIxpthread_t. 2009-10-27 14:12:59 +00:00
Ralf Corsepius
d0f47c22fb 2009-10-27 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRIxrtems_event_set.
	(fatal_posix_service_status_errno) Add local "long" var "statx".
2009-10-27 08:12:25 +00:00
Ralf Corsepius
15b7644e55 Add PRIdThread_Entry_numeric_type.
Add PRIdrtems_task_argument.
2009-10-27 06:53:07 +00:00
Ralf Corsepius
e693be45d7 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRIdWatchdog_Interval.
	Add PRIdrtems_interval.
2009-10-26 17:02:40 +00:00
Ralf Corsepius
ddff7ef490 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRIdPriority_Control.
	Change PRIdrtems_task_priority to using PRIdPriority_Control.
2009-10-26 14:20:43 +00:00
Ralf Corsepius
20fd4a517b Add PRIdrtems_task_priority. 2009-10-26 13:51:25 +00:00
Ralf Corsepius
47f20ce5d7 Add PRIxrtems_id. 2009-10-26 10:37:20 +00:00
Ralf Corsepius
b701261ccf 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Add PRItime_t.
2009-10-26 09:06:39 +00:00
Ralf Corsepius
88f692dac2 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h (print_time): Use PRIu32 instead of %d.
2009-10-26 05:38:04 +00:00
Ralf Corsepius
f440089997 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Move _Thread_Dispatch_disable_level
	outside of check_dispatch_disable_level.
2009-10-26 05:32:35 +00:00
Ralf Corsepius
7eb9ea679d 2009-10-26 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/include/tmacros.h: Include <inttypes.h>.
	Move extern "C".
	Let put_name use "int" instead "uint32_t" (Arg to putchar must be int).
2009-10-26 05:27:58 +00:00
Joel Sherrill
4e76c71cd0 2009-08-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* support/include/tmacros.h: Eliminate test routines TICKS_PER_SECOND
	and get_ticks_per_second() in favor of new
	rtems_clock_get_ticks_per_second().
2009-08-12 20:50:51 +00:00
Joel Sherrill
d5a36d3b18 2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* support/include/tmacros.h: Change TEST_INIT to CONFIGURE_INIT. Make
	tmacros.h available to all POSIX tests. Add a clock_settime case for
	< 1988.
2008-02-01 00:45:20 +00:00
Joel Sherrill
1dd2318c26 2008-01-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* support/include/tmacros.h: Fix put_name to handle unprintable names.
2008-01-31 17:31:05 +00:00
Joel Sherrill
83a66aa52f 2008-01-29 Joel Sherrill <joel.sherrill@oarcorp.com>
* support/include/tmacros.h: Add new rtems_test_assert() which exits
	rather than calling fatal error.
2008-01-29 21:53:40 +00:00
Joel Sherrill
81be799340 2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* support/include/tmacros.h: Add new helper for POSIX tests.
2007-12-17 16:08:17 +00:00
Joel Sherrill
104c492ef2 2006-02-01 Joel Sherrill <joel@OARcorp.com>
PR 855/tests
	* support/include/tmacros.h: Fix typo.
2006-02-01 19:43:32 +00:00
Ralf Corsepius
8f71a36f71 Remove stray white spaces. 2004-04-20 07:09:31 +00:00
Ralf Corsepius
5a800eee13 2004-03-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/tmacros.h: Convert to using c99 fixed size types.
2004-03-25 10:38:16 +00:00
Joel Sherrill
ef2ce2e2a2 2003-09-04 Joel Sherrill <joel@OARcorp.com>
* include/tmacros.h: URL for license changed.
2003-09-04 18:53:50 +00:00
Joel Sherrill
cd9396e7d0 2002-08-01 Joel Sherrill <joel@OARcorp.com>
* Per PR47 add support for buffered test output.  This involved
	adding defines to redirect output to a buffer and dump it when
	full, at "test pause", and at exit.  To avoid problems when redefining
	exit(), all tests were modified to call rtems_test_exit().
	Some tests, notable psxtests, had to be modified to include
	the standard test macro .h file (pmacros.h or tmacros.h) to
	enable this support.
	* include/buffer_test_io.h: New file.
2002-08-02 00:51:52 +00:00
Joel Sherrill
f96cb0bc54 2001-11-07 Joel Sherrill <joel@OARcorp.com>
Tracked as PR72 but related to the object id problem (PR36)
	reported by Todor.Todorov@barco.com.
	* include/tmacros.h: Added fatal_directive_check_status_only().
2001-11-07 23:08:40 +00:00
Joel Sherrill
413043b7c0 2001-08-16 Joel Sherrill <joel@OARcorp.com>
* include/tmacros.h: Attempt to print errno as further information.
2001-08-16 19:42:02 +00:00
Joel Sherrill
85d62357bb Changed error checking macros for POSIX. 2000-01-13 19:26:38 +00:00
Joel Sherrill
f388d36d84 Now print strings -- not error numbers. 2000-01-05 18:17:01 +00:00
Joel Sherrill
b8cda5a65b Added ifndef around build_time so pmacros.h and tmacros.h could be included
by the same application.
1999-11-22 19:02:35 +00:00
Joel Sherrill
08311cc3a9 Updated copyright notice. 1999-11-17 17:51:34 +00:00
Joel Sherrill
96c2db619f Added code so if dispatching level is specified to be -1, then no
check is performed.  This is needed in some timer service routines
since they are called from multiple disable levels.
1999-11-16 22:51:47 +00:00
Joel Sherrill
4b960e5f29 Added code to the macros which checked directive status to also
check that the _Thread_Dispatch_disable_level is set to the
proper value (0 99% of the time).  This automatic check significantly
reduces the chance of mismatching disable/enable dispatch pairs
while doing internal RTEMS work.
1999-11-16 16:21:00 +00:00
Joel Sherrill
458bd343e2 This is another pass at making sure that nothing outside the BSP
unnecessarily uses any variables defined by the BSP.  On this
sweep, use of BSP_Configuration and Cpu_table was eliminated.

A significant part of this modification was the addition of
macros to access fields in the RTEMS configuration structures.

This is necessary to strengthen the division between the BSP independent
parts of RTEMS and the BSPs themselves.  This started after
comments and analysis by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
1999-11-05 16:44:02 +00:00
Joel Sherrill
60b791ada1 updated copyright to 1998 1998-02-17 23:46:28 +00:00
Joel Sherrill
98e4ebf594 Fixed typo in the pointer to the license terms. 1997-10-08 15:45:54 +00:00
Joel Sherrill
03f2154e51 headers updated to reflect new style copyright notice as part
of switching to the modified GNU GPL.
1997-04-22 17:20:27 +00:00
Joel Sherrill
2a3d1fd2cb Made stopping for the pause an option which can be configured in the
targopts.h file.
1997-01-29 00:31:56 +00:00
Joel Sherrill
e6d4b1d086 added initial posix configuration support 1996-05-28 13:13:34 +00:00
Joel Sherrill
ba3911317a The name of the test support routine pause was changed to rtems_test_pause
to avoid conflict with the standard POSIX routine pause(2).
1996-02-22 20:14:36 +00:00
Joel Sherrill
c64e4ed482 updates from Tony Bennett for PA and UNIX ports 1996-01-15 21:50:28 +00:00
Joel Sherrill
11290355c9 all targets compile .. tony's patches in place 1995-09-29 17:19:16 +00:00
Joel Sherrill
3a4ae6c210 The word "RTEMS" almost completely removed from the core.
Configuration Table Template file added and all tests
modified to use this.  All gvar.h and conftbl.h files
removed from test directories.

Configuration parameter maximum_devices added.

Core semaphore and mutex handlers added and RTEMS API Semaphore
Manager updated to reflect this.

Initialization sequence changed to invoke API specific initialization
routines.  Initialization tasks table now owned by RTEMS Tasks Manager.

Added user extension for post-switch.

Utilized user extensions to implement API specific functionality
like signal dispatching.

Added extensions to the System Initialization Thread so that an
API can register a function to be invoked while the system
is being initialized.  These are largely equivalent to the
pre-driver and post-driver hooks.

Added the Modules file oar-go32_p5, modified oar-go32, and modified
the file make/custom/go32.cfg to look at an environment varable which
determines what CPU model is being used.

All BSPs updated to reflect named devices and clock driver's IOCTL
used by the Shared Memory Driver.  Also merged clock isr into
main file and removed ckisr.c where possible.

Updated spsize to reflect new and moved variables.

Makefiles for the executive source and include files updated to show
break down of files into Core, RTEMS API, and Neither.

Header and inline files installed into subdirectory based on whether
logically in the Core or a part of the RTEMS API.
1995-09-11 19:35:39 +00:00
Joel Sherrill
3235ad9a2c Support for variable length names added to Object Handler. This supports
both fixed length "raw" names and strings from the API's point of view.

Both inline and macro implementations were tested.
1995-08-23 19:30:23 +00:00
Joel Sherrill
4b374f36e7 maximum number of messages removed and include statement cleanup 1995-08-17 19:36:43 +00:00