Commit Graph

3840 Commits

Author SHA1 Message Date
Sebastian Huber
e69ee3629d dosfs: Fix fat_file_write()
Remove forced overwrite which leads to file data corruption.  The logic
to determine a forced overwrite was fundamentally broken.  For simplity,
disable this feature.

Update #2622.
2017-03-16 15:33:57 +01:00
Sebastian Huber
1becaa953e dosfs: Fix msdos_utf8_normalize_and_fold()
It is all right in case the result uses the full destination buffer.
Without this fix the handling of a maximum 8.3 short file name is
broken.

Update #2928.
2017-03-16 15:33:57 +01:00
Sebastian Huber
66fac03fae libio: Fix deadlock in location management
Perform a context-dependent deferred location release to avoid a
deadlock on the file system instance locks, for example during a
chdir().

Update #2936.
2017-03-16 15:33:56 +01:00
Joel Sherrill
191d39a5c4 psxstrsignal01: New test 2017-03-15 12:59:47 -05:00
Chris Johns
eb733202ad Fix rtems-test-check with a BSD sed.
BSD sed does not support '\t' and treated '[ \t]' as 3 characters. This patch
uses a standard method of supporting blank spaces.
2017-03-14 13:54:21 +11:00
Sebastian Huber
cb056d02c5 cdtest: Print begin of test only once 2017-03-03 09:04:12 +01:00
Sebastian Huber
902ffeddb5 termios09: Test send callback 2017-02-28 09:09:23 +01:00
Sebastian Huber
3663543392 termios: Implement non-blocking write 2017-02-28 09:09:23 +01:00
Sebastian Huber
a165a9607a termios: Make write POSIX compatible
Currently only blocking read/write operations are implemented.  A
blocking write must transfer at least one character.  It should not wait
for the device for the second character and so on.

Close #2917.
2017-02-28 09:09:19 +01:00
Sebastian Huber
5244d31ef7 termios: Simplify oproc()
Call rtems_termios_puts() only once.  Adjust column in one place.
2017-02-28 09:05:47 +01:00
Sebastian Huber
06d14667f7 termios09: Test output post processing 2017-02-28 09:05:47 +01:00
Sebastian Huber
c80f6aa916 termios: Fix infinite loop in receive path
In canonical mode, the raw input buffer or the canonical buffer may
overflow without an end of line.  Avoid an infinite loop in this case.

Close #2915.
2017-02-28 09:05:47 +01:00
Sebastian Huber
9fa0f543ec termios: Change receive callback invocation
Call the receive callback in case a read will succeed without to block.
This enables the use of the receive callback for a poll() and select()
support.  Increase raw input buffer size to allow buffering of one line.

Close #2916.
2017-02-28 09:05:42 +01:00
Sebastian Huber
9f69ac2a9d termios: Ignore carriage return early if desired
In case carriage return characters should be ignored in the input
(IGNCR), then drop them early before they reach the raw input buffer.
This makes it easier to calculate the content size of the raw input
buffer.
2017-02-28 08:51:31 +01:00
Sebastian Huber
c54769e71e spextensions01: Fix extension create order
Update #2692.
2017-02-21 12:11:44 +01:00
Sebastian Huber
611f926212 psxtests: Fix warnings 2017-02-15 10:35:07 +01:00
Sebastian Huber
71ac0a60ca spqreslib: Remove invalid test cases 2017-02-14 10:05:24 +01:00
Sebastian Huber
ad25f10d5b spcbssched02: Remove invalid test cases 2017-02-14 10:03:42 +01:00
Sebastian Huber
ecf53c8dd5 psxsem01: Fix warning 2017-02-14 09:57:22 +01:00
Sebastian Huber
54835ae9b3 Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS
Rename CONFIGURE_SMP_MAXIMUM_PROCESSORS to CONFIGURE_MAXIMUM_PROCESSORS
since the SMP part is superfluous.

Update #2894.
2017-02-14 09:52:05 +01:00
Sebastian Huber
c341463c97 tmacros.h: Fix print defines 2017-02-14 08:59:23 +01:00
Sebastian Huber
9333de2fa8 sppagesize: Include missing header file 2017-02-14 08:54:51 +01:00
Sebastian Huber
d9c6542970 dosfs: Fix msdos_find_file_in_directory()
For a filename match the entry must match without anything remaining.

Close #2908.
2017-02-14 08:07:22 +01:00
Sebastian Huber
239dd35fce smptests: Fix warnings 2017-02-03 11:25:04 +01:00
Sebastian Huber
07d71279b4 Prefix confdefs.h internal def with an underscore
Close #2895.
2017-02-03 11:14:58 +01:00
Sebastian Huber
ca1e546e77 score: Improve scheduler helping protocol
Only register ask for help requests in the scheduler unblock and yield
operations.  The actual ask for help operation is carried out during
_Thread_Do_dispatch() on a processor related to the thread.  This yields
a better separation of scheduler instances.  A thread of one scheduler
instance should not be forced to carry out too much work for threads on
other scheduler instances.

Update #2556.
2017-02-03 10:17:38 +01:00
Sebastian Huber
f95fa38764 Remove CONFIGURE_SMP_APPLICATION
Enable the SMP support if CONFIGURE_SMP_MAXIMUM_PROCESSORS > 1.

Update #2893.
2017-02-02 09:07:08 +01:00
Kuan-Hsun Chen
166a9f67cd sprmsched01/spedfsched04: Revise
Instead of using the target time and console driver, both tests now use
assertions and rtems_rate_monotonic_get_status() to verify the count of
postponed jobs.  The setting of spedfsched04 is slightly changed.

Close #2795.
2017-01-31 07:20:06 +01:00
Kuan-Hsun Chen
0794197f72 rtems: Fix _Rate_monotonic_Renew_deadline()
Prepare a precondition to prevent the potential integer overflow.

Remove one redundant parameter in _Rate_monotonic_Renew_deadline().

sptests/sprmsched02: Create
A test case for checking the overflow condition of postponed_jobs
in rtems_rate_monotonic_period_status.

Update #2885.
2017-01-30 07:53:13 +01:00
Sebastian Huber
6f6da82ca0 score: Fix user extensions order
Use forward and reverse order for initial and dynamic extensions.  This
is the behaviour documented in the C Users Guide.  Change thread
terminate order to backward to be in line with the thread delete order.
Change fatal error order to forward to ensure that initial extensions
are called first due the peculiar execution context of fatal error
extensions, see _Terminate() documentation.

Update #2692.
2017-01-26 11:20:45 +01:00
Kuan-Hsun Chen
d7feb8677d Remove rtems_rate_monotonic_postponed_job_count()
Add a variable named "count" in rtems_rate_monotonic_period_status
structure.  Revise rtems_rate_monotonic_get_status() for the postponed
job count.

sptests/sp69: Add in the verification of the postponed job count for
rtems_rate_monotonic_get_status().

Update #2795.
2017-01-26 10:00:33 +01:00
Sebastian Huber
7cb7454f93 psxtests: Relax shared memory tests
There is currently no proper mmap() implementation.

Update #2859.
2017-01-25 11:46:51 +01:00
Sebastian Huber
23a11b68cd sptests/spedfsched04: Merge and fix
Merge into one file and fix obvious problems (e.g. out of bounds array
access).

Update #2795.
2017-01-25 11:16:02 +01:00
Sebastian Huber
29e08d41f4 sptests/sprmsched01: Merge and fix
Merge into one file and fix obvious problems (e.g. out of bounds array
access).

Update #2795.
2017-01-24 15:37:04 +01:00
Sebastian Huber
6af2221aac fsscandir01: Check MAXNAMLEN and NAME_MAX
Update #1394.
2017-01-24 10:08:33 +01:00
Sebastian Huber
436a4b384b smptests/smpsignal01: Check signal ISR level
Close #2751.
2017-01-24 09:44:02 +01:00
Gedare Bloom
cb2cbecefd classic: adjust names of RM postponed job functions
closes #2795
2017-01-13 13:58:11 -05:00
Kuan-Hsun Chen
ad40220f80 sptests: EDF scheduler overrun handling
Update #2795.
2017-01-13 13:58:01 -05:00
Kuan-Hsun Chen
86aa124806 sptests: rate monotonic scheduler overrun handling
Update #2795.
2017-01-13 13:57:34 -05:00
Gedare Bloom
ba77628250 posix: shared memory support
Add POSIX shared memory manager (Shm). Includes a hook-based
approach for the backing memory storage that defaults to the
Workspace, and a test is provided using the heap. A test is
also provided for the basic use of mmap'ing a shared memory
object. This test currently fails at the mmap stage due to
no support for mmap.
2017-01-13 11:17:30 -05:00
Gedare Bloom
e7eeb38d23 posix: move sys/mman.h to newlib and test it in psxhdrs 2017-01-13 11:05:56 -05:00
Sebastian Huber
9fad437fbe configure: Remove HAVE_STRUCT__THREAD_QUEUE_QUEUE 2017-01-13 11:33:28 +01:00
Sebastian Huber
dc7031904d configure: Remove HAVE_THREADS_H support 2017-01-13 09:39:32 +01:00
Sebastian Huber
7c49927911 posix: Add pthread_getname_np(), ...
Add pthread_getname_np() and pthread_setname_np().

Update #2858.
2017-01-13 08:10:28 +01:00
Sebastian Huber
0c431303cc Add rtems_assoc_32_to_string() 2017-01-12 07:44:36 +01:00
Joel Sherrill
7a4b264574 Remove obsolete __RTEMS_HAVE_SYS_CPUSET_H__ 2017-01-11 09:45:32 -06:00
Joel Sherrill
ef362818df Add support for posix_devctl() 2017-01-11 09:45:32 -06:00
Sebastian Huber
ab834d65e4 JFFS2: RTEMS_JFFS2_ON_DEMAND_GARBAGE_COLLECTION
Update #2844.
2016-12-20 08:28:23 +01:00
Sebastian Huber
ade135d455 JFFS2: Add RTEMS_JFFS2_FORCE_GARBAGE_COLLECTION
Add IO control to force a garbage collection.

Update #2844.
2016-12-20 08:26:25 +01:00
Sebastian Huber
07c833f8f9 JFFS2: Add RTEMS_JFFS2_GET_INFO
Add IO control RTEMS_JFFS2_GET_INFO to get some JFFS2 filesystem
instance information.

Update #2844.
2016-12-20 08:26:21 +01:00