Commit Graph

24326 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
Sebastian Huber
1901afc5eb powerpc/qoriq: Fix due to console API changes 2012-05-21 11:02:13 +02:00
Sebastian Huber
a880c90b20 powerpc/mpc55xxevb: Fix cache define usage 2012-05-21 10:59:59 +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
Ralf Corsépius
39aab06ac4 Update from automake-1.11.5. 2012-05-18 07:11:47 +02:00
Joel Sherrill
8bbf69e6e6 pci.h cleanup - Consolidate common defines to cpukit pci.h
+ libbsp/sparc/shared/include/pci.h was largely a copy of
  an older version of the cpukit pci.h. Removed much of the
  contents and included <rtems/pci.h>.
+ sparc/*/pci*.c - Move to <rtems/pci.h> required updating
  to use uint32_t for dword accesses.
+ Rename PCI_MULTI_FUNCTION to PCI_HEADER_TYPE_MULTI_FUNCTION
+ Define PCI_HEADER_TYPE_MULTI_FUNCTION in cpukit pci.h and remove
  PCI_MULTI_FUNCTION definitions in C files.
+ Move PCI_INVALID_VENDORDEVICEID definitions from various C files
  to cpukit pci.h
2012-05-16 16:11:44 -05:00
Joel Sherrill
1364701915 mvme5500 and cpukit pci.h - Eliminate mvme5500 specific pci.h
All constants that should have been in cpukit pci.h were moved there.
One naming style was corrected. This impacted if_wm.c.

All other contents were the same as powerpc/shared/pci.h so BSP
specific pci.h could be eliminated.
2012-05-16 16:11:44 -05:00
Daniel Hellstrom
226d48d826 LEON: moved register definitions into grlib header file
Some register layout definitions for LEON3 reside in ambapp.h which
does not really has anything to do with device registers. The
register structures has been incorrectly named LEON3_*, the cores
are not only used on LEON3 but on LEON4 and perhaps on LEON5 when
that day comes. Some structures has been renamed according to the
GRLIB core name instead, which CPU that actually use it is not
relevant. Drivers has been updated with the new names.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-05-16 13:29:13 -04:00
Sebastian Huber
ca764e66ea nfsclient: Fix symbolic link evaluation 2012-05-16 12:40:21 +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
e37ed99c99 Filesystem: Add missing include file <stdint.h> 2012-05-15 16:27:51 +02:00
Sebastian Huber
0a95800a58 Filesystem: Change pathconf_limits_and_options
The pathconf_limits_and_options field of
rtems_filesystem_mount_table_entry_t is now a const pointer to reduce
the read-write memory demands of file system instances.
2012-05-15 10:37:00 +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
7666afc97a Filesystem: Add const qualifier to lock/unlock 2012-05-15 10:01:43 +02:00
Sebastian Huber
53da07e436 Filesystem: PR1255: Move offset update to handlers
It is now the responsibility of the read() and write() handler to update
the offset field of the IO descriptor (rtems_libio_t).  This change
makes it possible to protect the IO descriptor from concurrent access by
per file locks.
2012-05-15 10:01:42 +02:00
Sebastian Huber
fed66f9910 Filesystem: Add shared device IO support
The device IO file system support in IMFS, devFS, and RFS uses now a
shared implementation.
2012-05-15 10:01:42 +02:00
Sebastian Huber
df01da6707 Filesystem: Use ioctl_command_t 2012-05-15 10:01:42 +02:00
Sebastian Huber
a1c6b96ac7 rfs: Fix major and minor number integer types 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
Sebastian Huber
fce1169de0 dosfs: Remove unused parameter 2012-05-14 16:57:59 +02:00
Sebastian Huber
29192481a8 devfs: C++ compatibility 2012-05-14 16:57:59 +02:00
Sebastian Huber
52c0db28a1 Filesystem: Remove duplicate prototype 2012-05-14 16:57:58 +02:00
Gedare Bloom
2b36355b44 PR2065: RBTree: Insert function (protected) does not enable interrupts
Save the return value from the unprotected version and return it after
enabling interrupts to their previous level.
2012-05-13 10:40:10 -04: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
65c6425de9 Remove CVS Id Strings (manual edits after script)
These modifications were required by hand after running the script.
In some cases, the file names did not match patterns. In others,
the format of the file did not match any common patterns.
2012-05-11 08:44:14 -05:00
Joel Sherrill
ae55da7232 cpukit/aclocal - Fix one mistake by script 2012-05-11 08:44:14 -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
183af893d1 Miscellaneous - Clean up file headers so patterns followed
XXX
2012-05-11 08:43:50 -05:00
Joel Sherrill
9ee5b9750b librtems++ - Remove junk line accidentally committed 2012-05-11 08:33:58 -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
84ab4fce24 libblock: Add RTEMS_BLKIO_PURGEDEV 2012-05-11 13:58:43 +02:00
Sebastian Huber
3d0c96c7f3 Filesystem: PR1893: Fix write and truncate handler
Space that grows due to truncate or write offsets beyond the current
file size must be zero filled.
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
eb7c6a84b6 pc386 - Clock driver compiles again plus clean up
The clock drivers were very inconsistent about prototyping
the ISR handlers. This broke with the recent clean up.

Tested on qemu.
2012-05-10 11:17:59 -05:00
Joel Sherrill
79fee34132 clockdrv_shell.h - Fix commment 2012-05-10 08:02:31 -05:00
Joel Sherrill
153ef545e8 clockdrv_shell.c - Remove unreferenced and obsolete file 2012-05-10 08:02:26 -05:00
Joel Sherrill
314fab552d Clock Driver Shell - ISR handler prototype should follow port interrupt model
The prototype for the clock driver tick isr varies based upon
the interrupt model used by the port. This driver was checking
solely upon a flag set by the BSP.
2012-05-10 08:01:38 -05:00
Joel Sherrill
42547e07cb nds - Clock driver compiles again 2012-05-10 08:01:28 -05:00