Commit Graph
4219 Commits
Author SHA1 Message Date
Sebastian Huber 55b69ed28e Move default config to librtemsdefaultconfig.a
An RTEMS application default configuration is contained in
cpukit/libmisc/dummy/default-configuration.c.  This default
configuration was contained in librtemscpu.a.  This had at least two
problems:

1. Application configuration errors may have pulled in the default
   configuration which in turn lead to multiply define symbols error.
   This was quite confusing.  You had to consult the linker map file to
   figure out what cased the pull in of the default configuration.  You
   needed to know what a linker map file is and how you generate it with
   your build system.  This was not very user friendly.

2. It prevented the use of default configuration items for each subsystem
   in librtemscpu.a.  This may be used to reduce the size of the
   configuration itself.

Move the default configuration to the separate library
librtemsdefaultconfig.a.

Close #3551.
2018-10-29 10:33:37 +01:00
Sebastian Huber 24b58072ff config: Modify CONFIGURE_INTERRUPT_STACK_SIZE
Use CPU_STACK_MINIMUM_SIZE instead of CONFIGURE_MINIMUM_TASK_STACK_SIZE
to set the default value.

Close #3480.
2018-10-24 10:19:14 +02:00
Sebastian Huber 522d4b9186 malloctest: Hide NULL pointer from compiler
Disabling a warning does not prevent the compiler from reasoning what it
is supposed to do with a somewhat undefined function call.
2018-10-24 10:19:14 +02:00
Sebastian Huber 8ba76b9e28 tmonetoone: Add yield test case 2018-10-22 08:08:10 +02:00
Sebastian Huber 1ad26cdcf7 Support O_NOFOLLOW open() flag
Close #3546.
2018-10-22 08:06:05 +02:00
Sebastian Huber 3825926601 Support O_CLOEXEC open() flag
Make sure this flag is ignored and does not prevent a successful open.

Close #3547.
2018-10-22 08:06:05 +02:00
Sebastian Huber 92e0eedc0a psxreaddir: Adjust test due to opendir() changes
Update #3545.
2018-10-22 08:06:05 +02:00
Sebastian Huber 4af18b34f4 Support O_DIRECTORY open() flag
Close #3545.
2018-10-18 11:11:24 +02:00
Joel Sherrill 632bb17556 libtests/Makefile.am: Add CPU_CFLAGS to rtems-ld invocation
closes #3401, #3402.
2018-10-14 16:55:38 -05:00
Sebastian Huber cca7c40865 tmtests: Fix unused variable warnings 2018-10-12 14:48:45 +02:00
Sebastian Huber 47b32a01a4 fsclose01: Fix uninitialized variable warning 2018-10-12 14:45:24 +02:00
Sebastian Huber ca056e3fe7 tmtests/tmonetoone: New test program 2018-10-11 09:08:10 +02:00
Sebastian Huber 26b58b7e4a telnetd: Add server port to configuration
Close #3543.
2018-10-11 09:08:10 +02:00
Sebastian Huber 0dc303f09d telnetd: Create sessions at start
Update #3543.
2018-10-11 09:08:06 +02:00
Sebastian Huber 629faf9504 telnetd: Remove keep stdio feature
The Telnet service started via rtems_telnetd_start() had a keep stdio
feature.  This just created a task and executed the command function in
a loop.  For this kind of service we do not library support.  This can
be done by an application task on its own.  Remove this feature and
provide only the real Telnet server functionality.

Use syslog() for error and status messages.

Add test program for the Telnet server.

Close #3542.
2018-10-10 14:06:27 +02:00
Sebastian Huber 477bca2d61 build: Remove local.am 2018-10-10 07:57:47 +02:00
Sebastian Huber 9da5d5fd10 build: Directly reference libraries in tests
Remove use of TMPINSTALL_FILES.
2018-10-10 07:57:42 +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 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 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 8352d413ca spthreadlife01: A task exit must not return
Update #3533.
2018-10-05 07:31:39 +02:00
Sebastian Huber e50e3f7087 rtems: Add rtems_task_exit()
Update #3533.
2018-10-01 12:32:54 +02:00
Sebastian Huber 0614743723 spthreadlife01: Remove superfluous restart case
Update #3243.
2018-10-01 12:28:10 +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 431661de35 smp03: make printout match actual task name 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
Sebastian Huber 1fe1b820de score: Fix PER_CPU_DATA_GET_BY_OFFSET()
Add uniprocessor version for PER_CPU_DATA_GET_BY_OFFSET().  Fix warnings
in uniprocessor configurations.

Update #3507.
2018-09-10 12:01:50 +02:00
Sebastian Huber 709796209c score: Add thread pin/unpin support
Add support to temporarily pin a thread to its current processor.  This
may be used to access per-processor data structures in critical sections
with enabled thread dispatching, e.g. a pinned thread is allowed to
block.

Update #3508.
2018-09-10 10:38:45 +02:00
Sebastian Huber cfc4231d8f score: Add flexible per-CPU data
Update #3507.
2018-09-10 10:38:45 +02:00
Sebastian Huber 0e907232e0 sptests/spconfig01: New test
Close #3435.
2018-09-06 07:12:38 +02:00
Sebastian Huber e0a9336bf9 score: Fix EDF SMP scheduler
Fix a special case: block a one-to-one scheduled thread while having a
non-empty affine ready queue on the same processor.
2018-09-03 09:37:35 +02:00
Daniel Hellstrom 97d2c44332 spglobalcon01: LLVM optimization makes variable i always 1
Declare i volatile to avoid compiler optimization putting i
into data section with initialization value 1.
2018-08-24 15:51:39 +02:00
Daniel Hellstrom 655108e416 psxfile01: floating point context required when calling fprintf
This avoids an exception (FP disabled) when RTEMS/Newlib have
been built with LLVM/Sparc.
2018-08-24 15:51:39 +02:00
Daniel Hellstrom 26c3f9f576 psx13: floating point context required when calling fprintf
This avoids an exception (FP disabled) when RTEMS/Newlib have
been built with LLVM/Sparc.
2018-08-24 15:51:39 +02:00
Joel Sherrill da8b12bcb7 dl06/dl06-o1.c: Remove set, not used warning 2018-08-15 09:48:28 -05:00
Joel Sherrill adbd7e747e fsdosfssync01/init.c: Remove unused variable 2018-08-15 09:47:53 -05:00
Joel Sherrill 382d6537df libtests/POSIX: Fix warnings and style. 2018-08-10 08:24:29 -05:00
Sebastian Huber fd27bae5b9 CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE
Make CONFIGURE_MINIMUM_POSIX_THREAD_STACK_SIZE configurable by the user.

Update #3434.
2018-08-08 08:15:13 +02:00
Sebastian Huber 97417bb15f tests: Remove CONFIGURE_MAXIMUM_DRIVERS
This configuration is superfluous in these tests.
2018-08-07 07:37:59 +02:00
Sebastian Huber 0b038bd48b libblock: Add RTEMS_DEPRECATED
Close #3358.
2018-08-07 07:17:19 +02:00
Sebastian Huber b152d33ba5 fileio: Avoid deprecated rtems_disk_obtain()
Update #3358.
2018-08-07 07:17:19 +02:00
Sebastian Huber dd66fda397 tests: Avoid deprecated rtems_disk_io_initialize()
Update #3358.
2018-08-07 07:17:18 +02:00
Sebastian Huber bf80279025 libtests/block15: Use rtems_blkdev_create()
Update #3358.
2018-08-07 07:17:18 +02:00
Sebastian Huber fa12e06d33 libtests/block14: Use rtems_blkdev_create()
Update #3358.
2018-08-07 07:17:18 +02:00
Sebastian Huber 3278d20200 libtests/block13: Use rtems_blkdev_create()
Update #3358.
2018-08-07 07:17:18 +02:00
Sebastian Huber 5e4bab7769 libtests/block12: Use rtems_blkdev_create()
Update #3358.
2018-08-07 07:17:18 +02:00
Sebastian Huber 6f34f1391e libtests/block10: Use rtems_blkdev_create()
Update #3358.
2018-08-07 07:17:17 +02:00
Sebastian Huber 5005bfcccd libtests/block09: Use rtems_blkdev_create()
Update #3358.
2018-08-07 07:17:17 +02:00