Commit Graph
32107 Commits
Author SHA1 Message Date
Daniel Hellstrom dc32b6aa08 leon: do not use -mfix-{device} with Clang
Clang do not support -mfix-gr712rc, -mfix-ut700 and -mfix-ut699.
Therefore we adjust the CPU_CFLAGS to remove these when compiling with
Clang. Instead use
  GR712RC:      -mcpu=gr712rc
  GR740:        -mcpu=gr740
  UT699/UT700:  Not currently supported by clang, use LEON3 BSP.
2018-10-09 12:36:41 +02:00
Javier Jalle 6dc0b5f4c5 leon, spwtdp: Initial driver commit 2018-10-09 12:36:41 +02:00
Sebastian Huber 511ef83ce4 bsps/arm: Fix ctor/dtor invocation order
Remove obsolete .ctor and .dtor output sections.
2018-10-09 12:01:27 +02:00
Sebastian Huber acb53d53c9 posix: Remove static assertion
Standard C does not allow pointer operands in an integer constant
expressions.  GCC issues only a -Wpedantic warning in the removed static
assertion.  However, clang is pedantic by default and issues an error.

Rely on the test case instead.
2018-10-09 08:48:25 +02:00
Sebastian Huber 5bd75823bb ftpd: Remove superfluous temporary buffer
Update #3530.
2018-10-08 10:06:44 +02:00
Sebastian Huber 2f784d72d3 ftpd: Check return status of getsockname()
Update #3530.
2018-10-08 08:15:13 +02:00
Sebastian Huber be8de0ff46 ftpd: Fix insecure chroot() handling
Ensure that the rtems_libio_set_private_env() was successful before the
chroot().

Update #3530.
2018-10-05 15:16:46 +02:00
Sebastian Huber df97c4d25f ftpd: Avoid resource leak
Update #3530.
2018-10-05 14:56:10 +02:00
Sebastian Huber 479a28e08c ftpd: Avoid use of uninitialized memory
Update #3530.
2018-10-05 14:54:49 +02:00
Sebastian Huber 51da629b2a ftpd: Avoid malloc() and sscanf()
Move the user name to the session information.

Update #3530.
2018-10-05 14:47:21 +02:00
Sebastian Huber dcf42bb238 ftpd: Remove FTPD_SessionInfo_t::pass member
There is no need to keep the password throughout the session.

Update #3530.
2018-10-05 14:39:46 +02:00
Sebastian Huber e761fb4dc0 ftpd: Avoid NULL pointer checks before free()
They are superfluous and just bloat the code.

Update #3530.
2018-10-05 14:05:54 +02:00
Sebastian Huber 05b5f9c0ea jffs2: Avoid use of constant register variable
Avoid the use of a constant register variable which is used in some
conditions.  This gets rid of a clang -Wsometimes-uninitialized warning.
2018-10-05 13:56:59 +02:00
Sebastian Huber 4a7c68675d Fix rbtree_postorder_for_each_entry_safe()
Use the non-standard typeof operator to avoid code generation errors
with clang and use of uninitialized variable warnings with GCC and
Coverity Scan.

Update #3465.
2018-10-05 13:41:07 +02:00
Sebastian Huber 1d39e96470 score: Fix legacy RTEMS_STATIC_ASSERT()
In standard C pointer operands are not allowed in integer constant
expressions.  Avoid a static assertion based on an array typedef since
this could lead to warnings ("variably modified 'x' at file scope" and
"typedef 'x' locally defined but not used");

This implementation requires unique messages.
2018-10-05 13:41:07 +02:00
Sebastian Huber 51b3cbca11 tests: Use rtems_task_exit()
Update #3533.
2018-10-05 13:41:07 +02:00
Sebastian Huber 8776bb9419 score: Remove CPU_PROVIDES_IDLE_THREAD_BODY
Remove the CPU_PROVIDES_IDLE_THREAD_BODY option to avoid unnecessary
conditional compilation.

Close #3539.
2018-10-05 13:41:06 +02:00
Sebastian Huber b38887ad22 dev/sc16is752: Deal with a baud of zero
Avoid division by zero and instead disable rx/tx in case of a zero baud
value.  Problem identified by Coverity Scan.
2018-10-05 13:41:06 +02:00
Sebastian Huber 8352d413ca spthreadlife01: A task exit must not return
Update #3533.
2018-10-05 07:31:39 +02:00
Sebastian Huber b131cb2aa0 bsp/atsam: Use internal SRAM for stack area 2018-10-04 14:35:00 +02:00
Sebastian Huber 8777d4ccea Add rtems_interrupt_server_request_set_vector()
By default, the interrupt vector of an interrupt server request is set
to a special value which is outside the range of vectors supported by
the interrupt controller hardware.

Add rtems_interrupt_server_request_set_vector() to set the interrupt
vector in an interrupt server request.

Calls to rtems_interrupt_server_request_submit() will disable the interrupt
vector of the request.  After processing of the request by the interrupt
server the interrupt vector will be enabled again.
2018-10-04 11:32:25 +02:00
Sebastian Huber 313f897f10 Optimize calloc()
Use return value of memset() to enable tail call optimizations.
2018-10-04 08:02:29 +02:00
Sebastian Huber 1ad43f8809 Avoid need for -fno-builtin for calloc()
Use RTEMS_OBFUSCATE_VARIABLE() instead.
2018-10-04 08:02:28 +02:00
Sebastian Huber 541889069b Remove superfluous pipe_create() 2018-10-04 08:02:28 +02:00
Sebastian Huber 242887bc56 Rename files to make them unique within cpukit
This allows to build librtemscpu.a in one rush in the future.
2018-10-04 08:02:28 +02:00
Sebastian Huber 2d17e8827e bsps/mips: Remove unused command line defines
Update #3375.
2018-10-04 08:02:28 +02:00
Sebastian Huber f373bdc087 libdl: Avoid command line defines
Update #3375.
2018-10-04 08:02:28 +02:00
Sebastian Huber 2e77151e93 mghttpd: Add configuration to source file
Update #3375.
2018-10-04 08:02:28 +02:00
Sebastian Huber 06060da3bc pppd: Simplify Makefile.am
Update #3375.
2018-10-04 08:02:28 +02:00
Sebastian Huber e069f7fe56 rpc: Use configuration header file
Update #3375.
2018-10-04 08:02:28 +02:00
Sebastian Huber f004b2b8dc Use rtems_task_exit()
Update #3530.
Update #3533.
2018-10-02 10:22:15 +02:00
Sebastian Huber e50e3f7087 rtems: Add rtems_task_exit()
Update #3533.
2018-10-01 12:32:54 +02:00
Sebastian Huber 57a7ecdee5 telnetd: Remove CEXP convenience routines
Close #3535.
2018-10-01 12:32:54 +02:00
Sebastian Huber a346ebba9c telnetd: Remove CONFIGURE_MAXIMUM_PTYS
Add a rtems_telnetd_config_table::client_maximum member to the Telnet
configuration.

Close #3526.
Close #3528.
2018-10-01 12:32:50 +02:00
Sebastian Huber 2da93bcb73 telnetd: Regroup includes 2018-10-01 12:28:11 +02:00
Sebastian Huber 8e0755405c telnetd: Remove dead code 2018-10-01 12:28:11 +02:00
Sebastian Huber 0413b14cf7 telnetd: Remove superfluous global variable
Update #3528.
2018-10-01 12:28:10 +02:00
Sebastian Huber b980f36306 telnetd: Convert pty driver to new Termios API
Update #3526.
2018-10-01 12:28:10 +02:00
Sebastian Huber ac9f80874f pppd: Remove unused get_pty() function
Update #3526.
2018-10-01 12:28:10 +02:00
Sebastian Huber 0614743723 spthreadlife01: Remove superfluous restart case
Update #3243.
2018-10-01 12:28:10 +02:00
Sebastian Huber 5cb23f4b88 bsp/atsam: Use binary semaphore for I2C
Remove superfluous sleep before each I2C transfer.  Reset I2C module
after transfer timeouts.

Update #3534.
2018-10-01 09:01:29 +02:00
Sebastian Huber fca9132aa5 bsp/atsam: Use binary semaphore for SPI
Update #3534.
2018-10-01 09:01:21 +02:00
Sebastian Huber 69a24c3cb0 bsp/imx: Add imx_ccm_sdhci_hz()
Update #3525.
2018-09-27 07:22:41 +02:00
Sebastian Huber c56721cc6f printer: Fix Doxygen comments 2018-09-27 07:22:21 +02:00
Sebastian Huber 7d1acc03f1 stackchk: Fix interrupt stack preparation
We have to prepare the interrupt stack of each processor.

Update #3459.
2018-09-24 09:16:31 +02:00
Sebastian Huber 4221d932b4 stackchk: Improve support for interrupt stacks
Prepare the interrupt stack which may be used by the boot processor as
initialization stack with the stack sanity pattern.  Check the interrupt
stack of the current processor in the thread begin and switch extension.

Update #3459.
2018-09-21 07:59:03 +02:00
Sebastian Huber a75a7d3c57 stackchk: Remove heap hack
It is now guranteed that threads do not use a freed stack during
termination.
2018-09-21 07:49:42 +02:00
Sebastian Huber 56e61e24bd Remove INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL
The configured interrupt stack size (CONFIGURE_INTERRUPT_STACK_SIZE) is
checked against the minimum task stack size.  The minium tasks task
stack size is also a configuration option
(CONFIGURE_MINIMUM_TASK_STACK_SIZE).  So, this check does not really
help in case of configuration errors.  In addition, the interrupt stack
is also re-used as the initialization stack in most BSPs.  It is
probably better to use a stack checker to detect problems.

Update #3459.
2018-09-21 07:19:29 +02:00
Jacob Hansen 5cbc9c5922 clang: Keep -qrtems and -B for compilers without -specs support
This is needed for building rtems correctly with Clang.

Note that this change does not mean rtems can build correctly with
mainline clang. However the change allows building rtems with a
Clang toolchain that has a rtems frontend similar that of GCC's
builtin rtems specs.
2018-09-20 12:48:32 +02:00
Daniel Hellstrom 9ed109cc7f leon: remove warning missing string.h 2018-09-20 12:48:32 +02:00