Commit Graph
3922 Commits
Author SHA1 Message Date
Joel Sherrill 3ebbabbb93 psximfs02/init.c: Increase size of buffer to avoid overwrite 2017-07-28 15:53:21 -05:00
Joel Sherrill bed7ec11b8 psxmmap01/init.c: Correct printf() format specifier 2017-07-28 11:24:34 -05:00
Sebastian Huber 77cbb2a444 psxtests/psxmmap01: Fix warning
Update #2859.
2017-07-28 13:53:43 +02:00
Sebastian Huber 9d1522ed32 Fix IO control request type 2017-07-28 13:28:11 +02:00
Sebastian Huber 7f1e6fa369 libtests/block08: Fix format warning 2017-07-28 12:19:05 +02:00
Joel Sherrill 3fd019739f psxmmap01/test_helper.c: Use correct printf format for size_t 2017-07-27 17:29:24 -05:00
Joel Sherrill 3a3d85c606 psxmmap01/test_driver.c: Fix mmap_h handler type mismatch 2017-07-27 17:29:02 -05:00
Sebastian Huber 146adb1edf sparc: Add lazy floating point switch
The SPARC ABI is a bit special with respect to the floating point context.
The complete floating point context is volatile.  Thus, from an ABI point
of view nothing needs to be saved and restored during a context switch.
Instead the floating point context must be saved and restored during
interrupt processing.  Historically, the deferred floating point switch was
used for SPARC and the complete floating point context is saved and
restored during a context switch to the new floating point unit owner.
This is a bit dangerous since post-switch actions (e.g. signal handlers)
and context switch extensions may silently corrupt the floating point
context.

The floating point unit is disabled for interrupt handlers.  Thus, in case
an interrupt handler uses the floating point unit then this will result in a
trap (INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT).

In uniprocessor configurations, a lazy floating point context switch is
used.  In case an active floating point thread is interrupted (PSR[EF] == 1)
and a thread dispatch is carried out, then this thread is registered as the
floating point owner.  When a floating point owner is present during a
context switch, the floating point unit is disabled for the heir thread
(PSR[EF] == 0).  The floating point disabled trap checks that the use of the
floating point unit is allowed and saves/restores the floating point context
on demand.

Update #3077.
2017-07-25 11:41:12 +02:00
Sebastian Huber 600d88dfd7 INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT
Add new fatal error INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT.

Update #3077.
2017-07-25 11:41:11 +02:00
Sebastian Huber 1c256e6fbe tmtests/tmcontext01: Prevent GCC 7.1 optimizations
It is getting harder to prevent the compiler from optimizing away the
recursive function calls.
2017-07-20 11:39:07 +02:00
Sebastian Huber 5f1ae90e18 sptests/sptls02: Use standard test IO
Update #3076.
2017-07-19 16:01:09 +02:00
Sebastian Huber 0ea7ca9ea8 sptests/spcache01: Use standard test IO
Update #3076.
2017-07-19 15:55:44 +02:00
Sebastian Huber a0271a704b tests: Use floating point task
These tests directly or indirectly use fprintf(), etc. which may use the
floating point unit.

Update #3076.
2017-07-19 15:55:43 +02:00
Sebastian Huber 96ce1ec743 smptests/smpscheduler02: Remove invalid assert
Update #3059.
2017-07-19 13:03:13 +02:00
Sebastian Huber 7ad82395c4 smptests/smpscheduler01: Use right scheduler
Update #3063.
2017-07-19 12:58:55 +02:00
Sebastian Huber 6f46848079 tests: Use floating point task
These tests directly or indirectly use fprintf(), etc. which may use the
floating point unit.

Update #3076.
2017-07-19 11:57:01 +02:00
Sebastian Huber 07e178005a tests: Use floating point task
These tests directly or indirectly use fprintf(), etc. which may use the
floating point unit.

Update #3076.
2017-07-18 14:14:34 +02:00
Sebastian Huber 533ac1126c tests: Use more integer print functions
This avoids an unnecessary use of the floating point unit.

Update #3076.
2017-07-18 14:13:47 +02:00
Kevin Kirspel 1549beb15b psxtests: Add a mmap dedicated test case
Updates #2859
2017-07-14 16:04:05 -04:00
Sebastian Huber ecabd38496 rtems: Add rtems_scheduler_ident_by_processor_set
Update #3070.
2017-07-11 14:16:59 +02:00
Sebastian Huber 548d65a52b rtems: Add rtems_scheduler_ident_by_processor()
Update #3069.
2017-07-11 14:16:58 +02:00
Sebastian Huber 4a1bdd3045 score: Fix set scheduler
Ensure that the thread processor affinity fits the new scheduler
instance.

Update #3059.
2017-07-10 07:49:40 +02:00
Sebastian Huber 34487537ce score: Add simple affinity support to EDF SMP
Update #3059.
2017-07-10 07:49:36 +02:00
Sebastian Huber e745ec59d8 smptests/smpstrongapa01: Simplify
Update #3059.
2017-07-07 07:56:25 +02:00
Sebastian Huber 16347a6b39 score: Fix default set affinity
The set of online processors must be a subset of the thread processor
affinity for the schedulers without arbitrary processor affinity support
to avoid problems in case of processor addition and removal.

Update #3059.
2017-07-07 07:56:24 +02:00
Sebastian Huber 76d119857f score: Introduce _SMP_Get_online_processors()
Update #3059.
2017-07-07 07:55:03 +02:00
Sebastian Huber 0232b28df1 score: Use processor mask for set affinity
Update #3059.
2017-07-07 07:36:31 +02:00
Sebastian Huber 78515554fd score: Move processor affinity to Thread_Control
Update #3059.
2017-07-07 07:28:29 +02:00
Sebastian Huber 3dfe55ee15 score: Use <sys/bitset.h> for Processor_mask
Implement the Processor_mask via <sys/bitset.h>.  Provide
_Processor_mask_To_uint32_t() to enable its use in device specific
routines, e.g. interrupt affinity register in an interrupt controller.

Update #3059.
2017-07-06 15:29:16 +02:00
Sebastian Huber 9b07f5efe3 newlib01: Use fopen() instead of freopen()
With global stdio streams, a freopen() would close the global stream
object.

Update #3012.
2017-06-30 14:57:25 +02:00
Sebastian Huber 7adf4941a8 smptests/smpschededf01: New test
Update #3056.
2017-06-29 15:21:30 +02:00
Sebastian Huber 7f7a3e8f70 tests: Move busy loop to test support
Update #3056.
2017-06-29 14:36:58 +02:00
Sebastian Huber f3d9f2288e score: Add SMP EDF scheduler
Update #3056.
2017-06-29 11:28:32 +02:00
Sebastian Huber 1dbce41bb8 smptests: Split smpscheduler03
Split smpscheduler03 to run the tests with only one processor.

Update #3056.
2017-06-29 11:15:38 +02:00
Joel Sherrill b8b4b7d429 psxstat/test.c: Avoid potential string overflow 2017-06-21 12:50:31 -05:00
Joel Sherrill 9d945b5fff psximfs02/init.c: Avoid potential string overflow 2017-06-21 12:50:31 -05:00
Joel Sherrill d6cb813d33 dl03/dl-cache.c: Fix duplicate const warning 2017-06-21 12:50:31 -05:00
Joel Sherrill d93181a059 malloctest/init.c: Disable check maximum size warning to allow error test case 2017-06-21 12:50:30 -05:00
Joel Sherrill 5700d8ba52 top/task1.c: Fix sprintf() buffer overflow 2017-06-21 12:50:30 -05:00
Joel Sherrill a5d31fe642 rbheap01/init.c: Fix PAGE_SIZE redefined warning 2017-06-21 12:50:29 -05:00
Sebastian Huber 4000836c03 tests: Fix build dependencies
See also:

https://www.gnu.org/software/automake/manual/html_node/Built-Sources-Example.html
2017-06-13 13:01:03 +02:00
Sebastian Huber f7d0f5e1ad spcpuset01: Update due to CPU_CMP() changes
Close #3036.
2017-06-09 07:50:41 +02:00
Sebastian Huber b06dbb2658 spcpuset01: Update due to CPU_NAND_S() changes
Close #3032.
2017-06-07 13:02:22 +02:00
Sebastian Huber 836f4545dc Fix CPU_COPY() usage
The original CPU_COPY() support of Newlib <sys/cpuset.h> had the
parameters in the wrong order.  This is fixed in Newlib since
2017-05-22.

Update #3023.
2017-06-07 13:02:22 +02:00
Sebastian Huber 787f51f5b3 Do not include <sys/ioctl.h> in kernel-space
Update #2833.
2017-06-07 13:02:08 +02:00
Sebastian Huber 93531e9b08 Move RTEMS-specific Termios API content
Remove obsolete support for OFILL, OFDEL, NLDLY, CRDLY, BSDLY, VTDLY,
and FFDLY which is not present on FreeBSD and not implemented in Linux.

Update #2833.
2017-06-07 12:57:39 +02:00
Chris Johns 7ec982bfeb build-system: Fix the targets support for the parallel build. 2017-05-26 10:35:17 +10:00
Chris Johns 30eeb0d15a testsuite: Fix excluding tests that a substring of another test.
Fix excluding `math` when there is a test `mathl`. The shell test
used fails in this case. This patch's approach is much simpler.
2017-05-25 15:11:45 +10:00
Chris Johns 86ae03c691 testsuite: Add fsjffs2gc01 to the disable JFFS tests. 2017-05-24 12:39:19 +10:00
Chris Johns 7396e398cd testusite: Fix the parallel build test excludes. 2017-05-24 09:26:42 +10:00