Commit Graph

441 Commits

Author SHA1 Message Date
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
Ralf Corsépius
cf42a6ea9d Add config.h.in. 2012-05-24 07:17:05 +02:00
Ralf Corsépius
2a7b823a7c Revert "Revert "libtests/complex: Avoid generated files""
This reverts commit 0c2d8ec48a.
2012-05-24 07:16:22 +02:00
Ralf Corsépius
1831fd1272 Revert "Revert "libtests/math*: Avoid generated files""
This reverts commit 87c8d8aba6.
2012-05-24 07:15:40 +02:00
Ralf Corsépius
87c8d8aba6 Revert "libtests/math*: Avoid generated files"
This reverts commit 6a5bd1c65c.
2012-05-23 16:45:01 +02:00
Ralf Corsépius
0c2d8ec48a Revert "libtests/complex: Avoid generated files"
This reverts commit a80a108d44.
2012-05-23 16:44:33 +02:00
Sebastian Huber
6a5bd1c65c libtests/math*: Avoid generated files
Use C pre-processor instead of shell commands.
2012-05-22 10:52:41 +02:00
Sebastian Huber
a80a108d44 libtests/complex: Avoid generated files
Use C pre-processor instead of shell commands.
2012-05-22 10:52:41 +02:00
Sebastian Huber
502629707d libcsupport: Adjust malloc_walk() prototype
The header file <rtems/malloc.h> provides now also the malloc_walk()
prototype.

The malloc_walk() prototype reflects now the _Protected_heap_Walk() API.
The return status helps to print only in case of an error.
2012-05-16 12:38:21 +02:00
Sebastian Huber
3c462734ba libblock: Fix purge device tree traversal 2012-05-14 16:57:59 +02:00
Joel Sherrill
4c86e3d8be libtmtests - Eliminate missing prototype warnings 2012-05-11 12:20:47 -05:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Joel Sherrill
33a105fb69 Revert: Remove CVS Ids
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html
for details.
2012-05-07 11:08:48 -05:00
Ralf Corsépius
820d82ed8a Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Sebastian Huber
5c51ba1333 rbheap: API changes and documentation 2012-04-18 12:18:11 +02:00
Sebastian Huber
e75263083e rbheap: New files
In the Red-Black Tree Heap the administration data structures are not
contained in the managed memory area.  This can be used for example in a
task stack allocator which protects the task stacks from access by other
tasks.
2012-04-11 11:24:19 +02:00
Sebastian Huber
58f665583e networking: socket to/from file descriptor
o Move rtems_bsdnet_fdToSocket() and rtems_bsdnet_makeFdForSocket() to
   "cpukit/libnetworking/rtems/rtems_syscall.c".
 o The rtems_bsdnet_makeFdForSocket() function is now static.
 o Check in rtems_bsdnet_fdToSocket() function that the file descriptor
   uses the socket handlers, otherwise an error status will be returned
   and errno set to ENOTSOCK.
 o New test libtests/syscall01.
2012-04-03 16:21:23 +02:00
Sebastian Huber
4ee0fa8798 libtests/block06: Increase stack size 2012-03-26 15:04:53 +02:00
Sebastian Huber
23ed785839 PR2040: libtests/flashdisk01: New test 2012-03-14 11:14:38 +01:00