Commit Graph

529 Commits

Author SHA1 Message Date
Chris Johns
f98abbe0eb libdl: Disable building libdl for the NIOS2. No relocation support.
This should have been added.
2014-11-06 13:09:54 +11:00
Chris Johns
540b7b4178 libtests: Add libdl test dl02.
Loads 2 interdependent ELF object files.
2014-11-04 16:31:50 +11:00
Chris Johns
d52c9e4d71 libtests: Update dl01 documentation. 2014-11-04 16:30:08 +11:00
Joel Sherrill
c58f90bfe8 dl01/dl-load.c: Add missing const 2014-11-02 18:54:55 -06:00
Chris Johns
ae5fe7e6bc cpukit: Add libdl with the Runtime Loader (RTL) code.
This is a merge of the RTL project.
2014-10-31 11:04:15 +11:00
Jennifer Averett
410bcdfe5f top: Add new test. 2014-10-28 08:09:37 -05:00
Jennifer Averett
254b7db0bc capture01: Remove capture task tracking.
This involved adding a new variable record to the capture buffer
and modifing the trace method to read those records.
2014-10-27 14:02:36 -05:00
Sebastian Huber
7fd5e89c96 termios: Partially hide rtems_termios_tty
Move interrupt lock to device context and expose only this structure to
the read, write and set attributes device handler.  This makes these
device handler independent of the general Termios infrastructure
suitable for direct use in printk() support.
2014-10-07 16:35:13 +02:00
Sebastian Huber
a830cb864d termios: Separate flow control from normal handler 2014-10-07 16:27:51 +02:00
Sebastian Huber
5cb5342c49 libtests/capture01: Fix test name 2014-09-01 13:28:30 +02:00
Sebastian Huber
979d95e470 libtests/capture01: Force error if SMP enabled
This prevents infinite test runs on SMP due to the recursive interrupt
lock acquire.
2014-09-01 10:08:12 +02:00
Sebastian Huber
4030cccfef tests: Add documentation 2014-09-01 11:01:04 +02:00
Sebastian Huber
60fe374247 rbtree: Add and use RBTree_Compare_result 2014-08-05 09:30:37 +02:00
Jennifer Averett
648c86c26a capture01: Add include of assert.h. 2014-07-14 13:12:31 -05:00
Jennifer Averett
82d137ae21 capture01: New non-interactive test for capture engine. 2014-07-11 09:49:55 -05:00
Sebastian Huber
93726e5205 termios: Add rtems_termios_set_best_baud() 2014-07-09 15:56:43 +02:00
Sebastian Huber
a0fb29fb80 termios: PR1279: Use first open status 2014-07-09 12:07:49 +02:00
Sebastian Huber
32fc6a3490 termios: PR1279: Use set attributes status 2014-07-09 12:07:49 +02:00
Sebastian Huber
ef8c00bc88 termios: PR2153: New low-level device API
Add a new low-level device API to Termios that passes the TTY structure
to the low-level device functions.  This greatly simplifies the
low-level device drivers since they are no longer forced to derive their
private data from the minor number.

It makes it possible to use the TTY low-level lock in the device driver
low-level functions which is necessary for proper SMP support.  For
example to set the attributes it is often necessary to perform a
read-modify-write operation on a control register used also by interrupt
routines.

A compatibility layer is provided to support device drivers using the
old callback functions so it is not necessary to modify existing device
drivers.
2014-07-09 11:55:00 +02:00
Joel Sherrill
3324383ce0 testsuites: Remove BSP_SMALL_MEMORY 2014-05-06 18:31:00 -05:00
Chris Johns
1461b648b7 testsuite: Add a per BSP test check for tests not to build.
Provide a file per BSP to list tests that do not build for a BSP. This change
removes the BSP_SMALL_MEMORY hack from the code. That hack was a
mistake.

Provide configuration files for each BSP with tests that cannot build.
2014-05-05 10:24:41 +10:00
Joel Sherrill
a44fa5a7ce utf8proc01: Honor BSP_SMALL_MEMORY 2014-04-22 08:37:02 -05:00
Joel Sherrill
faa4e4c08d flashdisk01: Honor BSP_SMALL_MEMORY 2014-04-22 08:37:02 -05:00
Sebastian Huber
263f4becea score: Statically initialize IO manager
This simplifies the RTEMS initialization and helps to avoid a memory
overhead.  The workspace demands of the IO manager were not included in
the <rtems/confdefs.h> workspace size estimate.  This is also fixed as a
side-effect.

Update documentation and move "Specifying Application Defined Device
Driver Table" to the section end.  This sub-section is not that
important for the user.  Mentioning this at the beginning may lead to
confusion.
2014-04-10 12:37:40 +02:00
Sebastian Huber
3ccfd98bc1 libtests/newlib01: New test 2014-04-01 14:10:22 +02:00
Sebastian Huber
ecd8c8add2 tests/fatal: Fix test names 2014-03-31 08:29:42 +02:00
Christian Mauderer
5c0c0cf2a6 privateenv: Use POSIX keys instead of task variables. 2014-03-27 14:50:36 +01:00
Sebastian Huber
8c26e79867 tests: Produce proper begin/end messages 2014-03-25 16:46:37 +01:00
Christian Mauderer
5ef9f23fb4 libcsupport: Use POSIX keys for GXX key functions
With this patch C++ applications now eventually need additional POSIX-keys and
POSIX-key-value-pairs configured.
2014-03-24 08:31:49 +01:00
Christian Mauderer
9d9df8b44e libcsupport: Remove unused gxx-wrapper function.
The rtems_gxx_key_dtor function is not longer used by gcc.
2014-03-24 08:31:49 +01:00
Chris Johns
c49985691f Change all references of rtems.com to rtems.org. 2014-03-21 08:10:47 +11:00
Sebastian Huber
f8b2eb03f7 tests/libtests: Use <rtems/test.h> 2014-03-20 09:10:26 +01:00
Sebastian Huber
ae88aa7927 sapi: Use one SMP lock for all chains
This partially reverts commit 1215fd4d94.

In order to support profiling of SMP locks and provide a future
compatible SMP locks API it is necessary to add an SMP lock destroy
function.  Since the commit above adds an SMP lock to each chain control
we would have to add a rtems_chain_destroy() function as well.  This
complicates the chain usage dramatically.  Thus revert the patch above.
A global SMP lock for all chains is used to implement the protected
chain operations.

Advantages:

* The SAPI chain API is now identical on SMP and non-SMP
  configurations.

* The size of the chain control is reduced and is then equal to the
  Score chains.

* The protected chain operations work correctly on SMP.

Disadvantage:

* Applications using many different chains and the protected operations
  may notice lock contention.

The chain control size drop is a huge benefit (SAPI chain controls are
66% larger than the Score chain controls).  The only disadvantage is not
really a problem since these applications can use specific interrupt
locks and unprotected chain operations to avoid this issue.
2014-03-11 10:58:09 +01:00
Sebastian Huber
a418b2f8b0 libnetworking: Typo 2014-03-06 09:43:58 +01:00
Sebastian Huber
92f50c3b29 score: Add SYSTEM_STATE_TERMINATED
Merge systems states SYSTEM_STATE_SHUTDOWN and SYSTEM_STATE_FAILED into
new system state SYSTEM_STATE_TERMINATED.  This reflects that all system
termination paths end up in _Internal_error_Occurred().
2014-02-19 09:59:38 +01:00
Sebastian Huber
a49bc354a7 score: Add _Heap_Size_with_overhead() 2014-02-04 10:06:34 +01:00
Sebastian Huber
e1b96b83e5 libtests/block11: Use custom device driver 2014-02-03 13:44:36 +01:00
Chris Johns
e83be2871f testsuite/rtems++: Output format change.
Alter the output to avoid sending out what is the MI protocol. The SIS
simulator is currently broken and outputs directly to GDB's stdout and
so this output gets parsed as MI output.
2014-01-10 10:57:08 +11:00
Cynthia Rempel
46123cf24f libtests: Add contents to rbheap and stackchk documentation files 2014-01-09 09:42:01 -06:00
Daniel Ramirez
3096f5c967 libtests/termios01: Add tests for cfsetspeed() and cfmakeraw() 2014-01-09 09:21:49 -06:00
Daniel Ramirez
8950204093 libtests/uid01: Fix Copyright information 2014-01-09 10:18:45 -05:00
Daniel Ramirez
7cf81ba4aa libtests: added test to confirm patch fixes bug 2014-01-09 10:07:49 -05:00
Cynthia Rempel
73a7713d8c fstests and libtests: Add contents to multiple documentation files 2014-01-08 12:48:37 -06:00
Mandar Juvekar
d2d4a8f99d utf8proc1/spedgsched01: minor fixes in test document files 2013-12-25 16:10:26 -06:00
Nick Withers
b5d2d4a61c Update to Mongoose 3.9 at the last point before the MIT -> GPL license change
[That is, 04fc209644. See https://groups.google.com/forum/#!topic/mongoose-users/aafbOnHonkI]

The RTEMS patches described in the following emails and made to the previous Mongoose base have been applied:
  - http://www.rtems.org/pipermail/rtems-devel/2012-July/001345.html
  - http://www.rtems.org/pipermail/rtems-devel/2012-July/001343.html
  - http://www.rtems.org/pipermail/rtems-devel/2012-July/001346.html (except to mongoose.1, see below)
...as well as a patch very similar to that discussed at http://forums.bannister.org/ubbthreads.php?ubb=showflat&topic=7600&gonew=1 to provide poll() (which might be able to go away soon, with incoming RTEMS poll() support)

mg_connect(), mg_url_encode() and mg_vprintf() were additionally marked "static" to silence warnings.

mongoose.1 appears to have been removed from the upstream distribution.

Note that the API's changed, for example:
  - A struct mg_callbacks must now be provided to mg_start(). Initialise members to NULL to disable various types of callbacks
  - Callback interfaces have changed significantly in general
  - The short form of options (e.g., "u" instead of "run_as_user") are no longer available (upstream)
  - The "max_request_size" options has been removed
2013-12-04 10:09:16 +01:00
Sebastian Huber
4ea97d2449 score/rbtree: Remove "unprotected" from API 2013-11-21 12:58:46 +01:00
Sebastian Huber
435f2c056b libtests/malloctest: Fix heap extend test case 2013-11-18 14:56:43 +01:00
Joel Sherrill
a136fb697d testsuites: Add missing .scn files 2013-11-15 11:55:44 -06:00
Sebastian Huber
9e1d605979 libtests/flashdisk01: Include missing header file 2013-10-16 15:19:27 +02:00
Sebastian Huber
d9998172a0 libtests/termios04: Avoid NULL pointer access 2013-09-17 13:58:53 +02:00