Commit Graph

2598 Commits

Author SHA1 Message Date
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
Ralf Corsépius
e7cf65453a Add missing ) 2012-05-18 11:20:54 +02:00
Ralf Corsépius
6963854ddc Remove references to configure.in. 2012-05-18 07:47:52 +02:00
Ralf Corsépius
cf65bb0049 Remove obsolete reference to posix bsp. 2012-05-18 07:37:45 +02:00
Ralf Corsépius
bbb69abb98 Remove stray dnl. 2012-05-18 07:24:47 +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
da154e14f6 Filesystem: Move operations to mount table entry
The scope of the file system operations is the file system instance.
The scope of the file system node handlers is the file location.  The
benefit of moving the operations to the mount table entry is a size
reduction of the file location (rtems_filesystem_location_info_t).  The
code size is slightly increased due to additional load instructions.

Restructure rtems_filesystem_mount_table_entry_t to improve cache
efficiency.
2012-05-15 10:01:43 +02:00
Sebastian Huber
df01da6707 Filesystem: Use ioctl_command_t 2012-05-15 10:01:42 +02:00
Sebastian Huber
3c462734ba libblock: Fix purge device tree traversal 2012-05-14 16:57:59 +02:00
Joel Sherrill
6c2de6052d psxtests - Eliminate missing prototype warnings 2012-05-11 14:12:11 -05:00
Joel Sherrill
4c86e3d8be libtmtests - Eliminate missing prototype warnings 2012-05-11 12:20:47 -05:00
Joel Sherrill
a03d4453dd tmoverhd - Eliminate warnings 2012-05-11 09:25:49 -05:00
Joel Sherrill
991a3cc1c9 psxtmtests - Eliminate missing prototype warnings 2012-05-11 09:15:40 -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
Sebastian Huber
b16b0aa9de fstests/fsrdwr: Add block read/write test case 2012-05-11 13:58:44 +02:00
Sebastian Huber
a26ea56dfd fstests/fsrdwr: Add truncate to zero test case 2012-05-11 13:58:44 +02:00
Sebastian Huber
be36650868 fstests/fsrdwr: Fix assertions 2012-05-11 13:58:44 +02:00
Sebastian Huber
25f814c016 fstests/fsrdwr: Avoid copy and paste 2012-05-11 13:58:44 +02:00
Sebastian Huber
86ef0df976 dosfs: Remove fat_file_datasync()
The fat_file_datasync() read every cluster of the file into the cache
and then synchronized it step-by-step.  For unmodified buffers this is a
non-operation.  For modified buffers this will wake-up the swapout task
which performs then a single buffer write operation.  This is usually
quite inefficient.  Firstly we do single buffer writes, secondly we
may perform a lot of unnecessary read operations (for huge files this is
really bad), and thirdly this leads likely to cache evictions.

The synchronization procedure is replaced by a simple
rtems_bdbuf_sync_dev().  This has the side-effect that also buffers not
related to the file are synchronized, but since the modified list is
normally short this should be acceptable.
2012-05-11 13:58:43 +02:00
Sebastian Huber
d61b0a5abf Filesystem: PR1871: Fix O_APPEND 2012-05-11 13:58:43 +02:00
Sebastian Huber
30d412469c Filesystem: PR1398: Fix lseek() mechanic
According to POSIX the lseek() function shall not, by itself, extend the
size of a file.

Remove the size field of rtems_libio_t.  A file has only one size but
may have multiple open file descriptors.  Thus a file size field in the
file descriptor may lead to inconsistencies.

New default handlers rtems_filesystem_default_lseek_file() and
rtems_filesystem_default_lseek_directory().
2012-05-11 13:58:43 +02:00
Joel Sherrill
c100ba13de spqreslib - Make global data extern in system.h
Global data was declared in system.h but should have been extern
in system.h and declared in init.c. There were duplicate symbol
linking errors on at least powerpc/mpc8260ads.
2012-05-09 16:55:05 -05:00
Gedare Bloom
f53aa8d302 rbtree: API changes. Remove rbtree control node from RBTree_Next.
The implementation of RBTree_Next was using an awkward construction to detect
and avoid accessing the false root of the red-black tree. To deal with the
false root, RBTree_Next was comparing node parents with the control node.
Instead the false root can be detected by checking if the grandparent of a
node exists; the grandparent of the tree's true root is NULL by definition
so the root of the tree is found while walking up the tree by checking for
the non-existence of a grandparent.

This change propagates into the predecessor/successor and iterate functions.
2012-05-08 18:40:44 -04:00
Joel Sherrill
865bffd1c7 tm30 - Fix warning for Init needed prototype 2012-05-07 16:57:35 -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
Joel Sherrill
333a312d9b samples/base_mp - Makefile.am did not set LINK_OBJS
LINK_OBJS =

instead of

LINK_OBJS = $(mp01_node1_OBJECTS)
2012-05-04 15:14:34 -05:00
Joel Sherrill
48e02af9ca mptests - Makefile.am did not set LINK_OBJS
LINK_OBJS =

instead of

LINK_OBJS = $(mp01_node1_OBJECTS)
2012-05-04 14:59:10 -05:00
Sebastian Huber
5a4bb758c0 Filesystem: Remove per file descriptor semaphore
The per file descriptor semaphore (field of rtems_libio_t) is unused in
RTEMS.  There is a considerable memory overhead due to that.  A
semaphore needs roughly 124 bytes which is huge compared to the
approximately 72 bytes for the file descriptor structure itself.  Device
drivers can create their own synchronization primitives in the open
handler on demand.
2012-05-04 10:53:51 +02:00
Ralf Corsépius
0caef32f7b Remove CVS-Ids. 2012-05-04 09:36:25 +02:00
Ralf Corsépius
fdc39c482a Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Ralf Corsépius
9f4e8fbc63 Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Ralf Corsépius
70f3719807 Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Ralf Corsépius
2376237f4c Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Ralf Corsépius
4dec3529a1 Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Ralf Corsépius
84b0190564 Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Ralf Corsépius
67cad33ea9 Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Ralf Corsépius
27a345bfb8 Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Ralf Corsépius
820d82ed8a Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Ralf Corsépius
6a5e19cc56 Remove CVS-Ids. 2012-05-04 09:36:24 +02:00
Ralf Corsépius
5f38f20d28 Remove. 2012-05-04 09:29:07 +02:00
Joel Sherrill
9f6ea32393 psxaio01/psxaio02 - Formatting corrections
The file header was moved over one space. These two were the only
files in the testsuite which did this.
2012-05-03 10:03:34 -05:00
Joel Sherrill
604405d886 sp07/buffered_io.c add missing copyright
Date and ownership determined from file history.
2012-05-03 09:41:38 -05:00
Joel Sherrill
c36ebbda30 smp08 screen replacement 2012-04-24 16:10:01 -05:00
Gedare Bloom
fb78f9170f PR1908: consolidate libqos code and fix installed header location 2012-04-23 09:26:34 -04:00
Sebastian Huber
5c51ba1333 rbheap: API changes and documentation 2012-04-18 12:18:11 +02:00
Petr Benes
1c2b94a61c PR1908: QoS library for CBS scheduler
Add the lipqos and sptest.
2012-04-15 23:12:08 -04:00
Petr Benes
c050143273 PR1908: QoS library for CBS scheduler
Since the CBS scheduler is inspired by AQuoSA project for Linux, additional API
(qreslib) compliant with Linux has been created.

Sptest for qreslib included.
2012-04-15 23:06:34 -04:00
Sebastian Huber
8c6608bd1b rbtree: PR2046: Replace rtems_rbtree_unique 2012-04-13 09:14:18 +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