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
Daniel Hellstrom
431661de35
smp03: make printout match actual task name
2018-09-20 12:48:32 +02:00
Martin Aberg
c2011b474e
leon, grspw_pkt: support CCSDS/ISO16 data CRC
...
When the CCSDS/CCITT CRC-16 and 16-bit ISO-checksum logic is available in
GRSPW2, the DCRCT field is used to determine how to generate the CRC/checksum
code. grspw_hw_sup has been extended with the field ccsds_crc
2018-09-20 12:48:32 +02:00
Daniel Hellstrom
1a2656cd8e
tm26: enable FP context when fprintf used
...
calling rtems_print_printer_fprintf_putc() results in usage of vfprintf()
which may use floating point instructions in its implementation.
2018-09-20 12:48:32 +02:00
Daniel Hellstrom
227b145e7f
sparc: clang AS does no accept UNIMP without argument
2018-09-20 12:48:32 +02:00
Daniel Hellstrom
0aae151eba
leon,grspw_pkt: protect TX descriptor from bad input (hdrlen)
2018-09-20 12:48:32 +02:00