Commit Graph

33527 Commits

Author SHA1 Message Date
Sebastian Huber
b3686d7eb5 rtems: Remove RTEMS_MAXIMUM_NAME_LENGTH
Close #3979.
2020-07-14 07:25:45 +02:00
Sebastian Huber
90390118c0 rtems: Move declartion of _RTEMS_version
Close #3978.
2020-07-14 07:25:45 +02:00
James Fitzsimons
a3b86d6caf Fix for Beaglebone BSP PWM bug 2020-07-13 17:53:26 +02:00
Sebastian Huber
d76e7c1975 build: Fix RTEMS_CHECK_NETWORKING
Update #3941.
2020-07-05 20:33:16 +02:00
Sebastian Huber
401b237f93 epiphany: Remove support for this target
Due to an unmaintained toolchain (internal errors in GCC, no FSF GDB
integration) the Epiphany architecture was obsoleted in RTEMS 5.1.

Update #3941.
2020-07-05 18:05:25 +02:00
Sebastian Huber
523551ccf6 bsps/powerpc: Remove obsolete BSPs
Update #3951.
2020-07-05 12:56:05 +02:00
Sebastian Huber
70b803b554 bsps/powerpc: Remove SPE enabled variants
The PowerPC SPE support was removed from GCC.

Update #3951.
2020-07-05 12:56:01 +02:00
Sebastian Huber
69690f60b4 bsps/powerpc: Remove __atexit form start.o
Remove superflous __atexit stuff in start.o.  It is no longer required
by GCC and may cause linker problems.

See GCC commit:

commit 362c63a5e8b5aacfff3e5af0911e42ba7c775042
Author: Geoff Keating <geoffk@cygnus.com>
Date:   Fri Apr 14 23:16:25 2000 +0000
2020-07-05 12:56:01 +02:00
Sebastian Huber
9b5af6a47f bsps/powerpc: Fix tlbie instruction usage
GCC 10 no longer passes -many to the assembler.  This enables more
checks in the assembler.

The 0 in the tlbie instruction is the L operand which selects a 4KiB
page size.
2020-07-05 12:56:01 +02:00
Sebastian Huber
9b3b33d91a bsps/powerpc: Fix inline assembly
GCC 10 no longer passes -many to the assembler.  This enables more
checks in the assembler.
2020-07-05 12:56:01 +02:00
Sebastian Huber
b4a786df18 bsp/qoriq: Fix tlbwe sequence 2020-07-05 12:56:01 +02:00
Sebastian Huber
6a02c11b4e bsps/mips: Fix issues with -fno-common 2020-07-05 12:56:01 +02:00
Sebastian Huber
d0c1ce658e i386: Replace fpcr clobber with memory clobber
Update #3943.
2020-07-05 10:59:11 +02:00
Sebastian Huber
3c78e93c95 score: Clarify CPU_USE_LIBC_INIT_FINI_ARRAY option
Update #4018.
2020-06-30 09:51:33 +02:00
Kinsey Moore
48dd7b8c2e score: Add CPU_USE_LIBC_INIT_FINI_ARRAY
This introduces the CPU_USE_LIBC_INIT_FINI_ARRAY define for use by CPU
ports to determine which global constructor and destructor methods are
used instead of placing architecture defines where they shouldn't be.

Close #4018
2020-06-30 09:46:12 +02:00
Sebastian Huber
37c36def7a Change version to RTEMS 6
Update #4020.
2020-06-30 09:19:08 +02:00
Sebastian Huber
5faad36f97 psxtmtests: Fix test names
Tests PSXTMCOND 08, 09, and 10 had the same test name.
2020-06-23 10:34:57 +02:00
Sebastian Huber
46c2387181 rtems: Remove RTEMS_MP_NOT_CONFIGURED error
Some objects can be created with a local or global scope in a
multiprocessing network. In non-multiprocessing configurations setting
the scope to local or global had no effect since such a system can be
viewed as a multiprocessing network with just one node. One and all
nodes is the same in such a network. However, if multiprocessing was
configured, creation of a global object in a single node network
resulted in an RTEMS_MP_NOT_CONFIGURED error. Remove this error
condition for symmetry to the non-multiprocessing setup. This is in line
with the task affinity behaviour in SMP systems.

Update #4005.
2020-06-18 07:09:34 +02:00
Chris Johns
bc73a08598 i386/pc: Initialise the printk serial port on first use 2020-06-18 12:03:28 +10:00
Joel Sherrill
4a8b135dd6 bsps/i386/pc386/start/*.S: Remove space before tab 2020-06-17 07:52:15 -05:00
Jan Sommer
96d9823ddd bsp/pc386: Disable interrupt nesting for job handler
- Fixes timeout for smpipi01 where:
    + Main thread sends perform jobs to worker cpu while it is already
    performing jobs
    + Interrupt on worker cpu performs jobs, but with empty job list
    + Worker cpu continues to execut previous job and adds new job list
    to itself, which is never performed, since the interrupt has already
    been handled
    + Main thread blocks forever on barrier D
2020-06-11 13:29:41 +10:00
Jan Sommer
6369dafbb6 smpsignal01: Change state before sending the signal
The signal handler of the consumer might start executing
before rtems_signal_send of the producer returns.
Therefore change the state to SIG_1_SENT before sending the signal.
2020-06-11 13:29:35 +10:00
Jan Sommer
208cd6b794 bsps/pc386: Separate smp API functions. Makes smpfatal08 link 2020-06-11 13:29:27 +10:00
Jan Sommer
c954003fa0 bsps/pc386: Fix Clock_isr for SMP
- Do not forward Clock_isr through Clock_driver_support_at_tick as this
will cause every processor to send IPIs with Clock_isr therby creating
an infinie loop
- Instead the processor handling the clock interrupt causes all other
processors to call rtems_timecounter_tick to update their tick count
2020-06-11 13:29:18 +10:00
Jan Sommer
5d4a1edca0 bsp/pc386: Define interrupt stack frame for smp
- Defines CPU_Interrupt_frame in cpu_impl.h
- Updates isq_asm.S to save/restore registers in matching order to
interrupt frame
2020-06-11 13:29:11 +10:00
Jan Sommer
8937f12f18 bsp/pc386: Update context switch and restore
Uses similar flow in cpu_asm.S for i386 as for arm.
2020-06-11 13:29:03 +10:00
Jan Sommer
85d6a760f5 bsp/pc386: Update GDT to work for SMP
Create a GS segment in the GDT for each processor for storing TLS.
This makes the GDT in startAP.S obsolete as all processors now share the
same GDT, which is passed to each AP at startup.

The correct segment for each processor is calculated in cpu_asm.S.

Update #3335
2020-06-11 13:28:55 +10:00
Jan Sommer
f99b1f02b0 bsp/pc386: Turn start16.S into a startAP.S
start16.S is now only used for SMP configurations to start the
application processors.

This commit removes all unnecessary parts for this job,
i.e. video conssole initalisation, A20 gate activation
and all non-AP related code.

Update #3335
2020-06-11 13:28:46 +10:00
Jan Sommer
a2b7ab0385 bsp/pc386: Fix Makefile for building with SMP 2020-06-11 13:28:36 +10:00
Eshan dhawan
e84587355a tests for fenv.h functions
added tests for fesetexeptflag(), fegetexeptflag(),
fegetround(), fesetround().

In the test fegetround() does not return any flag
other then FE_TONEAREST in tests.
This is probably due to soft float.

The test complies successfully and returns assert
at fegetround()

Other tests run without any errors
tested on RISCV/rv32imac

The test prints nothing if runs successfully.

updates #2971

Signed-off-by: Eshan dhawan <eshandhawan51@gmail.com>
2020-06-06 15:24:59 -05:00
Sebastian Huber
bd750c9e6e arm: Fix ARMv7-M exception handler
Store the stack pointer of the exception context to the exception frame.

Close #3987.
2020-05-27 10:25:12 +02:00
Sebastian Huber
934cbe7d9f posix: Get real priority in pthread_getattr_np()
This is in line with pthread_setschedparam() and
pthread_getschedparam().

Update #2514.
2020-05-12 07:08:16 +02:00
Sebastian Huber
ea2d9237fc libtests/tar01: Remove files of tar01.tar archive
Update #3968.
2020-05-08 15:12:40 +02:00
Sebastian Huber
153b26699e termios: Replace rtems_termios_isig_status_code
Merge the rtems_termios_isig_status_code and
rtems_termios_iproc_status_code enums into a single
rtems_termios_iproc_status_code which is now a part of the API.

Simplify rtems_termios_posix_isig_handler() to avoid unreachable code.

Close #3800.
2020-05-07 12:31:56 +02:00
Sebastian Huber
ef9517b7d5 libtests/tar0[12]: Add tar archive
Do not generate the test tar archive on the host computer since not all
file systems support symbolic links.

Close #3968.
2020-05-07 12:31:56 +02:00
Chris Johns
084ea83a9b testsuite: Add expected-fail to beagleboneblack
Updates #2962
2020-05-06 18:40:42 +10:00
Chris Johns
7e3af67349 testsuite: Add expected-fail to xilinx's zedboard, a9_qemu, zc702 and zc706
Updates #2962
2020-05-06 18:40:27 +10:00
Chris Johns
1b1755d9a6 testsuite: Add expected-fail to psim
Updates #2962
2020-05-06 18:39:55 +10:00
Chris Johns
e9762d74b8 libdl: Add allocator check script
Use with the trace outout to check for allocation leaks.
2020-05-06 18:39:15 +10:00
Chris Johns
7d00247497 testsuite: Add expected-fail to erc32, leon2, and leon3 BSPs
Updates #2962
2020-05-06 18:39:05 +10:00
Chris Johns
89f57a665f testsuite: Add the BSP architecture to the include path
Updates #2962
2020-05-06 18:38:38 +10:00
Sebastian Huber
3ce3cdfc5b score: Update _Copyright_Notice
Add the _Copyright_Notice to a special linker set to prevent a garbage
collection of this item.
2020-05-06 08:02:15 +02:00
Sebastian Huber
d30a352d4c rtems: Deprecate _Copyright_Notice
Close #3973.
2020-05-06 08:01:57 +02:00
Sebastian Huber
1af8e45bb7 rtems: Add rtems_get_copyright_notice()
Update #3973.
2020-05-06 07:47:34 +02:00
Sebastian Huber
63274daf68 rtems: Deprecate <rtems/system.h>
Close #3972.
2020-05-06 07:47:34 +02:00
Sebastian Huber
3d86d83c1b rtems: Deprecate RTEMS_MAXIMUM_NAME_LENGTH
This define is

* not documented,

* not used in the RTEMS code base, and

* longer than sizeof(rtems_name).

Close #3971.
2020-05-06 07:46:29 +02:00
Sebastian Huber
34b098edc5 rtems: Deprecate use of _RTEMS_version
Close #3970.
2020-05-06 07:39:10 +02:00
Sebastian Huber
4b9b6ddb9f Use rtems_get_version_string()
Update #3970.
2020-05-06 07:39:09 +02:00
Chris Johns
e78c0806cb libtest/dl09: Test trampolines only when supported 2020-05-06 08:46:57 +10:00
Chris Johns
3f50e8e671 testsuite/dl06: Add a local define to control tracing
Closes #3969
2020-05-05 15:00:45 +10:00