Commit Graph

27710 Commits

Author SHA1 Message Date
Gedare Bloom
1281c34a23 Use counted strnlen in bin2c. Closes #2238. 2015-02-23 10:38:37 -05:00
Gedare Bloom
83fe4468bc psxtests: add string param to printf. closes #2241 2015-02-23 09:59:49 -05:00
Martin Galvan
dc9aaf7ced ARM: Support VFP-D16
This patch allows the existing FPU code to support both VFP-D16 and
VFP-D32. According to ARM, writes to D32DIS are ignored for D16 so
there's no need to enclose the bic instruction with an #ifdef. We tested
it on a TMS570LS3137 using TI initialization code and it works fine.

Signed-off by: Martin Galvan <martin.galvan@tallertechnologies.com>
2015-02-20 18:52:58 +01:00
Sebastian Huber
a45dfa1447 IMFS: Fix copy on write for linfiles 2015-02-20 09:42:15 +01:00
Nick Withers
5eb27ce409 Don't fail to create passwd and group files if /etc already exists 2015-02-20 08:56:25 +01:00
Nick Withers
c53705c384 doc: Note that rename() is only partially implemented.
Replacing of existing files is not supported. See #2169.
2015-02-19 16:34:25 -05:00
Gedare Bloom
7f1bb40aa1 bfin: do not reset dispatch needed
Closes #2148

Fix suggested in above ticket. On examination, the assembly
appears to be clearing the DISPATCH_NEEDED flag before jumping
to _Thread_Dispatch.
2015-02-19 15:48:47 -05:00
Sebastian Huber
a3316f4706 sptests: Add missing test extension 2015-02-19 11:12:01 +01:00
Sebastian Huber
4e3d9a4d6c score: Make <rtems/score/atomic.h> available
Make <rtems/score/atomic.h> available for all RTEMS configurations.  Use
inline functions instead of macros.  Use ISR disable/enable on
uni-processor configurations to ensure atomicity.

Update #2273.
2015-02-19 10:05:48 +01:00
Sebastian Huber
fd144302a5 IMFS: Silence warning 2015-02-18 17:06:05 +01:00
Sebastian Huber
7fcb71af14 score: Fix _Thread_Start_multitasking() on SMP
Close #2268.
2015-02-17 13:43:57 +01:00
Sebastian Huber
8d6e6eebed score: Fix FP context restore via _Thread_Handler
After a context switch we end up in the second part of
_Thread_Dispatch() or in _Thread_Handler() in case of new threads.  Use
the same function _Thread_Restore_fp() to restore the floating-point
context.  It makes no sense to do this in _Thread_Start_multitasking().
This fixes also a race condition in SMP configurations.

Update #2268.
2015-02-17 13:42:53 +01:00
Sebastian Huber
c34f94f72d score: Add _CPU_SMP_Prepare_start_multitasking()
Update #2268.
2015-02-17 09:41:27 +01:00
Sebastian Huber
a43a34666e IMFS: Implement variable length node names
This reduces the average node size and adds more flexibility.
2015-02-15 11:26:39 +01:00
Sebastian Huber
f78549221b IMFS: Add CONFIGURE_IMFS_DISABLE_READDIR 2015-02-14 21:34:42 +01:00
Joel Sherrill
5640dd5558 lpc1768_mbed_ahb_ram_eth-testsuite.tcfg: Add ftp01 2015-02-13 16:27:22 -06:00
Joel Sherrill
79b45a1a8e lpc1768_mbed-testsuite.tcfg: Add ftp01 2015-02-13 16:27:22 -06:00
Sebastian Huber
2d84c4e4c1 score: Mention ticket in comment 2015-02-13 22:07:45 +01:00
Sebastian Huber
249766c53f IMFS: Rename CONFIGURE_IMFS_DISABLE_FCHMOD
Rename CONFIGURE_IMFS_DISABLE_FCHMOD to CONFIGURE_IMFS_DISABLE_CHMOD.
2015-02-13 21:26:17 +01:00
Sebastian Huber
40a18d7f9a IMFS: Add CONFIGURE_IMFS_DISABLE_MKNOD_FILE 2015-02-13 21:11:55 +01:00
Sebastian Huber
12eee4fdb5 IMFS: CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM
Resurrect CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM.
2015-02-13 20:53:41 +01:00
Joel Sherrill
50f8bfdb14 sapi/Makefile.am: Do not install libsapi.a
sapi/preinstall.am: Regenerated
2015-02-13 11:52:43 -06:00
Sebastian Huber
353506b93e sys/event.h: Update to FreeBSD 9.3 2015-02-13 10:48:35 +01:00
Joel Sherrill
b57a6a711a psxhdrs: Reorganize into subdirectories per .h file and rename files
This is a better organization and makes it clearer which file
is testing which method from which header file.
2015-02-12 15:30:44 -06:00
Joel Sherrill
86076f3f12 psxhdrs: Remove test of pthread_attr_[gs]et_cputime
These methods are no longer in the tree and the API tests should
have been removed.

closes 1981
2015-02-12 15:23:33 -06:00
Joel Sherrill
eedaf9baba psxhdrs: Add tests for <sys/socket.h> API compliance 2015-02-12 15:23:33 -06:00
Joel Sherrill
547c2282ee sys/socket.h: Include <sys/types.h> for ssize_t
closes 2245
2015-02-12 15:23:33 -06:00
Sebastian Huber
a9df916988 IMFS: Add fine grained configuration
Remove miniIMFS.  Statically initialize the root IMFS.

Add configuration options to disable individual
features of the root IMFS, e.g.
  o CONFIGURE_IMFS_DISABLE_CHOWN,
  o CONFIGURE_IMFS_DISABLE_FCHMOD,
  o CONFIGURE_IMFS_DISABLE_LINK,
  o CONFIGURE_IMFS_DISABLE_MKNOD,
  o CONFIGURE_IMFS_DISABLE_MOUNT,
  o CONFIGURE_IMFS_DISABLE_READLINK,
  o CONFIGURE_IMFS_DISABLE_RENAME,
  o CONFIGURE_IMFS_DISABLE_RMNOD,
  o CONFIGURE_IMFS_DISABLE_SYMLINK,
  o CONFIGURE_IMFS_DISABLE_UNMOUNT, and
  o CONFIGURE_IMFS_DISABLE_UTIME.
2015-02-12 20:53:36 +01:00
Sebastian Huber
a2f5c7e1a7 IMFS: Allow static initialization of FS info 2015-02-12 20:53:35 +01:00
Sebastian Huber
11026956c6 IMFS: Fix resource leak 2015-02-12 20:53:35 +01:00
Sebastian Huber
60cf8a5c16 IMFS: Add root directory to FS info
Fix memory leak in IMFS_fsunmount().
2015-02-12 20:53:35 +01:00
Sebastian Huber
9247d3faee IMFS: Simplify IMFS_symlink() 2015-02-12 20:53:35 +01:00
Sebastian Huber
e4d35d82fc IMFS: Split linfile and memfile modules
Make several functions static.
2015-02-12 20:53:34 +01:00
Sebastian Huber
24ec25d2ae IMFS: Introduce IMFS_mknod_control
Drop IMFS_node_control::node_size field and add node_size parameter to
IMFS_allocate_node() and IMFS_create_node().  This reduces the size of
generic nodes.
2015-02-12 20:53:34 +01:00
Sebastian Huber
194eb0074b Filesystem: Use ENOTSUP for default mount/unmount 2015-02-12 20:53:34 +01:00
Daniel Cederman
5efbb6619c grspw: Fix typos 2015-02-11 15:35:30 +01:00
Daniel Cederman
8244a2f447 doc: Document network task affinity option 2015-02-11 15:35:29 +01:00
Daniel Cederman
b92f737c24 doc: Describe new default error handler for Sparc 2015-02-11 15:35:27 +01:00
Daniel Cederman
8d8573acc8 smpcapture02: Add test of functionality to add custom entries to capture trace 2015-02-11 15:35:26 +01:00
Daniel Cederman
0c94a46fa3 bsp/sparc: Move BSP_ISR_handler to a separate file and rename it
This allows it to be wrapped by another function at link-time
and can be used to trace interrupts. If not placed in a separate
file, the function pointer address used in BSP_shared_interrupt_init
will be resolved at compile-time, and the function will not be wrappable.
2015-02-11 15:35:23 +01:00
Hesham ALMatary
1c7ee732fc or1k/cpu.c: Eliminate dependency on BSP provided header 2015-02-10 14:18:27 -06:00
Sebastian Huber
16939b1876 Filesystem: Simplify FIFO and pipe configuration 2015-02-09 19:09:23 +01:00
Sebastian Huber
eb7753437f Filesystem: Delete unused fsmountme_h handler 2015-02-09 15:38:48 +01:00
Sebastian Huber
b4e52ce90f fstests/fsrename: Avoid double initialization 2015-02-09 15:38:04 +01:00
Pavel Pisa
cf4dfc1901 arm/tms570: sci context has to be writable because it holds state variable.
The structure tms570_sci_context holds state variable
tx_chars_in_hw which holds if and how many characters
(in the optional FIFO support for some Ti SCIs) are submitted
into hardware.

When field is not writable then code breaks when RTEMS
is build for Flash area.

The problem found and analyzed by Martin Galvan from tallertechnologies.

Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
2015-02-04 19:36:22 +01:00
Sebastian Huber
924cbd4f42 IMFS: Simplify ino generation
The type of ino_t is unsigned long, so it can store a pointer.  Avoid a
potential integer overflow.
2015-02-04 19:31:55 +01:00
Sebastian Huber
95308caf58 IMFS: Use rtems_filesystem_make_dev_t_from_pointer 2015-02-04 19:31:55 +01:00
Sebastian Huber
4c14ace6dd Add rtems_filesystem_make_dev_t_from_pointer() 2015-02-04 19:31:52 +01:00
Sebastian Huber
efd2965abf Filesystem: Statically initialize rtems_libio_iops 2015-02-04 14:03:49 +01:00
Sebastian Huber
ec0f2df19b Filesystem: Use rtems_libio_iop_to_descriptor()
Drop parameter check from previously unused
rtems_libio_iop_to_descriptor().
2015-02-04 14:03:49 +01:00