Commit Graph

559 Commits

Author SHA1 Message Date
Ralf Corsépius
f205c18f0c Use uint32_t instead of long. Use unsigned defines (Prevent overflows on 16bit targets) 2013-04-17 12:23:34 +02:00
Sebastian Huber
a53045fda5 libtests/flashdisk01: Disable for small memory BSP 2013-04-08 09:54:53 +02:00
Gedare Bloom
fad2d38a9f RTEMS: Delete ChangeLog files.
This commit deletes all RTEMS ChangeLog files. These files have been abandoned
since converting to git version control. The historical data may be recovered
by checking out any commit before this one. Most of the contents of these
ChangeLog files can also be found in the git log.

Two external ChangeLog files, ChangeLog.slac and ChangeLog.zlib, remain.
2013-03-08 15:55:06 -05:00
Sebastian Huber
b63c8f9b50 ftpfs: Fix SIZE command handling
It is invalid to issue a SIZE command once a data transfer is
in progress.  For reads we issue the SIZE command before the RETR
command and get a snapshot of the file size.  For writes the file size
is initialized to zero and incremented for each write chunk.
2013-01-28 16:46:02 +01:00
Sebastian Huber
33bd2efbb2 testsuites: Fix prototypes 2013-01-27 13:50:23 +01:00
Sebastian Huber
fe62f3aa57 libtests/rbheap01: Add test cases 2012-12-22 17:42:11 +01:00
Sebastian Huber
aaee3a9179 libtests/malloctest: Add test case 2012-12-22 16:41:08 +01:00
Sebastian Huber
d8efe3dc71 libtests/malloctest: Add test case 2012-12-22 16:28:26 +01:00
Sebastian Huber
c40f36b08b libtests/md501: Use test cases of RFC 2202 2012-12-16 21:38:27 +01:00
Sebastian Huber
f95d74a4ad libtests/md501: New test 2012-12-16 17:33:57 +01:00
Sebastian Huber
b0da579608 termios: Implement tcflush()
New IO control RTEMS_IO_TCFLUSH.
2012-12-13 11:36:37 +01:00
Sebastian Huber
ad13ebe071 termios: Fix tcflow() error status 2012-12-13 11:36:37 +01:00
Ralf Kirchner
7fab7fc0cf libblock: Add sparse disk 2012-12-05 15:26:47 +01:00
Sebastian Huber
fe0f24ea39 ftpfs: Use SIZE command 2012-11-21 16:38:34 +01:00
Sebastian Huber
3fbcadfbf7 libnetworking: Use rtems_clock_get_uptime_seconds
This reduces the start-up time of the network stack.

With a 1ms tick the ticks since boot value overflows after approximately
50 days.  This problem is avoided with the
rtems_clock_get_uptime_seconds() function.
2012-11-21 16:29:41 +01:00
Sebastian Huber
a12f7e98f1 score: Add RTEMS_FATAL_SOURCE_STACK_CHECKER 2012-11-15 15:33:13 +01:00
Sebastian Huber
dc0eed7b97 testsuites: Include <bsp.h>
Include <bsp.h> for proper BSP specific <rtems/confdefs.h>
initialization.
2012-11-14 14:06:59 +01:00
Sebastian Huber
3cd79b0a9b libtests/devfs03: Initialize nodes 2012-11-07 15:19:20 +01:00
Sebastian Huber
9f0a68ce5a libblock: Block device transfer request API change
Add and use rtems_blkdev_request_done().  Block device transfer requests
must signal the completion status now with rtems_blkdev_request_done().
The return value of the block device IO control will be ignored for
transfer requests.

The first parameter of rtems_blkdev_request_cb is now the transfer
request structure.

Renamed rtems_blkdev_request::req_done to rtems_blkdev_request::done to
break third party drivers at compile time, otherwise this API change
would result in runtime errors.
2012-11-02 09:40:58 +01:00
Sebastian Huber
9dffa384e1 libblock: rtems_bdbuf_set_block_size() API change
The set block size must synchronize and purge the disk to avoid an
inconsistent cache state and data corruption.  The synchronization is
optional depending on the new sync parameter.  In some contexts a
synchronization must not be performed, e.g. during disk creation.
2012-10-26 22:03:22 +02:00
Sebastian Huber
0d68d8f2e9 libtests/block16: New test 2012-10-26 21:29:36 +02:00
Sebastian Huber
47a3cd8f73 score: Work area initialization API change
The work areas (RTEMS work space and C program heap) will be initialized
now in a separate step and are no longer part of
rtems_initialize_data_structures().  Initialization is performed with
tables of Heap_Area entries.  This allows usage of scattered memory
areas present on various small scale micro-controllers.

The sbrk() support API changes also.  The bsp_sbrk_init() must now deal
with a minimum size for the first memory chunk to take the configured
work space size into account.
2012-10-25 14:54:06 +02:00
Sebastian Huber
e4278f2050 score: Append to free list in _Heap_Extend() 2012-10-25 14:54:06 +02:00
Sebastian Huber
6ccfe722bd score: Change _Heap_Extend() API
The _Heap_Extend() has now the same signature as _Heap_Initialize().
The 4th parameter is ignored (page size in _Heap_Initialize()).

Add Heap_Area and Heap_Initialization_or_extend_handler.

Add and test _Heap_No_extend().

This helps to do a table based heap initialization and extension.
Create a table of Heap_Area elements and iterate through it.  Set the
handler to _Heap_Initialize() in the first iteration and then to
_Heap_Extend().
2012-10-25 14:54:06 +02:00
Ralf Corsépius
e693b9ed56 Remove unused var "sc". 2012-10-15 17:57:47 +02:00
Ralf Corsépius
b9e9dab9ef Remove unused var "service". Move #include "test-http-client.h" after std-header inclusion. 2012-10-15 17:57:27 +02:00
Ralf Corsépius
2d72c19843 Move extern "C" after std-header inclusions. 2012-10-15 17:56:55 +02:00
Joel Sherrill
cb7b57e174 mghttpd: Requires POSIX to build server and tests
Formerly, mghttpd was conditional only on networking being
enabled. It uses on pthread and must also be conditional
on POSIX threads support being enabled.
2012-10-03 11:09:32 -05:00
Gedare Bloom
57e922c799 Revert "Add config.h.in."
This reverts commit cf42a6ea9d.
2012-08-06 13:04:24 -04:00
Ralf Corsépius
bb2b8259ea Require automake-1.12.2. 2012-07-19 15:47:55 +02:00
Ralf Corsépius
0f772813aa Require autoconf-2.69. 2012-07-19 15:44:32 +02:00
Sebastian Huber
c8615dcf26 libtests/termios01: Use greedy allocation API 2012-07-17 10:52:13 +02:00
Sebastian Huber
317ee8d7ff score: Change greedy allocation API 2012-07-17 10:19:16 +02:00
Christian Mauderer
0eb5bfba3c libtests/mghttpd01: New test 2012-07-12 09:51:45 +02:00
Sebastian Huber
71092f7c94 libblock: Fix read-ahead trigger and next update
The previous version was sub-optimal for read-ahead transfer counts of
one.
2012-07-02 17:03:28 +02:00
Sebastian Huber
f29d969a72 libblock: Fix read-ahead trigger and next update 2012-07-02 16:15:54 +02:00
Sebastian Huber
f12249ff05 libblock: Fix continuous blocks write request 2012-07-02 16:15:54 +02:00
Sebastian Huber
6a03786d94 libtests/block06: Increase stack size 2012-07-02 16:15:53 +02:00
Sebastian Huber
9f527308d7 libblock: Add block device statistics 2012-06-12 10:12:40 +02:00
Sebastian Huber
1f7b5b0142 libtests/block13: Add const qualifier 2012-06-04 17:30:21 +02:00
Sebastian Huber
b8ed6d8037 libtests/block05: Fix warnings 2012-06-04 09:54:32 +02:00
Sebastian Huber
39ee704e75 libblock: Add read-ahead task
Read-ahead requests were previously executed in the context of the
reading task.  This blocks the reading task until the complete read
with read-ahead transfer is finished.  A read-ahead task is introduced
to off-load the read-ahead transfer.  This allows the reading task to
work with the requested block more quickly.  The read-ahead is triggered
after two misses of ascending consecutive blocks or a read hit of a
block read by the most-recent read-ahead transfer.  The read-ahead
feature is configurable and can be disabled.
2012-06-04 09:54:31 +02:00
Joel Sherrill
721fe34aae Fix C files which had two semi-colons at EOL 2012-05-31 15:34:36 -05:00
Ralf Corsépius
4f16ce03d2 Revert "Revert "libtests/complex: Avoid generated files""
This reverts commit 0c2d8ec48a.
2012-05-31 10:06:15 -05:00
Ralf Corsépius
61d2fb4dba Revert "Revert "libtests/math*: Avoid generated files""
This reverts commit 87c8d8aba6.
2012-05-31 10:06:15 -05:00
Ralf Corsépius
5e707bc75e Revert "libtests/math*: Avoid generated files"
This reverts commit 6a5bd1c65c.
2012-05-31 10:06:14 -05:00
Ralf Corsépius
b824fb873b Revert "libtests/complex: Avoid generated files"
This reverts commit a80a108d44.
2012-05-31 10:06:14 -05:00
Sebastian Huber
73c09b3b8e libblock: Simplify disk management
Add block_count and media_blocks_per_block to rtems_disk_device.  Add
and use rtems_disk_init_phys() and rtems_disk_init_log().
2012-05-31 11:05:48 +02:00
Sebastian Huber
40284de844 libblock: Remove const qualifier from bdbuf API
This allows addtion of per disk statistics for example.
2012-05-31 11:05:48 +02:00
Sebastian Huber
b6911069d4 libblock: Add task stack size bdbuf configuration
The task stack size for the swap-out and worker tasks is now
configurable.  The bdbuf task resources are now included in the work
space size estimate.
2012-05-31 11:05:48 +02:00