Commit Graph

4159 Commits

Author SHA1 Message Date
Sebastian Huber
91f39a5587 smptests: Fix format warnings 2018-07-24 13:00:56 +02:00
Sebastian Huber
bf199e0c33 block05: Remove unused variable 2018-07-24 13:00:56 +02:00
Sebastian Huber
bded3f05f8 psxthreadname01: Fix out of bounds memory access 2018-07-24 13:00:55 +02:00
Sebastian Huber
001b9925fc psxtimer02: Fix parameter type cast 2018-07-24 13:00:55 +02:00
Sebastian Huber
f133386ac8 sptests/sp20: Remove unused variable 2018-07-24 13:00:55 +02:00
Sebastian Huber
c192109f72 samples: Fix warnings 2018-07-24 10:06:49 +02:00
Sebastian Huber
3a646426aa score: Add _CPU_Instruction_illegal()
On some architectures/simulators it is difficult to provoke an
exception with misaligned or illegal data loads.  Use an illegal
instruction instead.

Update #3433.
2018-07-23 14:14:04 +02:00
Sebastian Huber
b74353ef9c score: Add _CPU_Instruction_no_operation()
This helps to reduce the use of architecture-specific defines throughout
the code base.
2018-07-20 09:11:05 +02:00
Sebastian Huber
42f2fdfd4e score: Move context validation declarations
The context validation support functions _CPU_Context_validate() and
_CPU_Context_volatile_clobber() are used only by one test program
(spcontext01).  Move the function declarations to the CPU port
implementation header file.
2018-07-20 09:11:05 +02:00
Sebastian Huber
ffd46178c7 score: Fix _Scheduler_EDF_SMP_Set_affinity()
Commit 8744498752 broke the
_Scheduler_EDF_SMP_Set_affinity() implementation.  We must test the
overall affinity against the online processors.
2018-07-18 07:16:27 +02:00
Sebastian Huber
6ec7f2102e posix: Fix rwlock auto initialization
Add more test cases.
2018-07-16 08:58:11 +02:00
Sebastian Huber
22d9575fd0 linux: Add rbtree_postorder_for_each_entry_safe()
Update #3465.
2018-07-16 07:22:11 +02:00
Sebastian Huber
6539beab82 score: Add postorder tree iteration support
Update #3465.
2018-07-16 07:22:06 +02:00
Sebastian Huber
2086948a7b riscv: Add dummy SMP support
Update #3433.
2018-06-28 15:02:12 +02:00
Sebastian Huber
511dc4b2be Rework initialization and interrupt stack support
Statically initialize the interrupt stack area
(_Configuration_Interrupt_stack_area_begin,
_Configuration_Interrupt_stack_area_end, and
_Configuration_Interrupt_stack_size) via <rtems/confdefs.h>.  Place the
interrupt stack area in a special section ".rtemsstack.interrupt".  Let
BSPs define the optimal placement of this section in their linker
command files (e.g. in a fast on-chip memory).

This change makes makes the CPU_HAS_SOFTWARE_INTERRUPT_STACK and
CPU_HAS_HARDWARE_INTERRUPT_STACK CPU port defines superfluous, since the
low level initialization code has all information available via global
symbols.

This change makes the CPU_ALLOCATE_INTERRUPT_STACK CPU port define
superfluous, since the interrupt stacks are allocated by confdefs.h for
all architectures.  There is no need for BSP-specific linker command
file magic (except the section placement), see previous ARM linker
command file as a bad example.

Remove _CPU_Install_interrupt_stack().  Initialize the hardware
interrupt stack in _CPU_Initialize() if necessary (e.g.
m68k_install_interrupt_stack()).

The optional _CPU_Interrupt_stack_setup() is still useful to customize
the registration of the interrupt stack area in the per-CPU information.

The initialization stack can reuse the interrupt stack, since

  * interrupts are disabled during the sequential system initialization,
    and

  * the boot_card() function does not return.

This stack resuse saves memory.

Changes per architecture:

arm:

  * Mostly replace the linker symbol based configuration of stacks with
    the standard <rtems/confdefs.h> configuration via
    CONFIGURE_INTERRUPT_STACK_SIZE.  The size of the FIQ, ABT and UND
    mode stack is still defined via linker symbols.  These modes are
    rarely used in applications and the default values provided by the
    BSP should be sufficient in most cases.

  * Remove the bsp_processor_count linker symbol hack used for the SMP
    support. This is possible since the interrupt stack area is now
    allocated by the linker and not allocated from the heap.  This makes
    some configure.ac stuff obsolete.  Remove the now superfluous BSP
    variants altcycv_devkit_smp and realview_pbx_a9_qemu_smp.

bfin:

  * Remove unused magic linker command file allocation of initialization
    stack.  Maybe a previous linker command file copy and paste problem?
    In the start.S the initialization stack is set to a hard coded value.

lm32, m32c, mips, nios2, riscv, sh, v850:

  * Remove magic linker command file allocation of initialization stack.
    Reuse interrupt stack for initialization stack.

m68k:

  * Remove magic linker command file allocation of initialization stack.
    Reuse interrupt stack for initialization stack.

powerpc:

  * Remove magic linker command file allocation of initialization stack.
    Reuse interrupt stack for initialization stack.

  * Used dedicated memory region (REGION_RTEMSSTACK) for the interrupt
    stack on BSPs using the shared linkcmds.base (replacement for
    REGION_RWEXTRA).

sparc:

  * Remove the hard coded initialization stack.  Use the interrupt stack
    for the initialization stack on the boot processor.  This saves
    16KiB of RAM.

Update #3459.
2018-06-27 08:58:16 +02:00
Sebastian Huber
ebc5cfda90 spmisc01: Add test cases for basedefs.h stuff 2018-06-21 11:27:29 +02:00
Sebastian Huber
fe46647ef5 score: Macros to declare and define global symbols
Add RTEMS_DEFINE_GLOBAL_SYMBOL() and add RTEMS_DECLARE_GLOBAL_SYMBOL().

Update #3459.
2018-06-21 11:21:04 +02:00
Sebastian Huber
4c7b18e358 Add RTEMS_SYSINIT_CPU_COUNTER
Add initialization step for the CPU counter support.

Update #3456.
2018-06-15 13:02:27 +02:00
Sebastian Huber
e8b28ba004 tools: Remove packhex
All tools should be removed from the RTEMS source repository at some
point in time.  Tools with a BSD-style license will be moved to the
RTEMS tools repository.  Unfortunately, this tool has no license
information.

Remove all uses of this tool from the code base.  Users of HEX files
should consider to use ELF instead.

Close #3379.
2018-06-15 07:14:36 +02:00
Sebastian Huber
ea092ccc79 tools: Remove rtems-bin2c
This tool is now included in the RTEMS tools repository.

Close #3380.
2018-06-14 07:33:46 +02:00
Sebastian Huber
de9b7d712b Add RTEMS_FATAL_SOURCE_INVALID_HEAP_FREE
An invalid heap usage such as a double free is usually a fatal error
since this indicates a use after free.  Replace the use of printk() in
free() with a fatal error.

Update #3437.
2018-06-05 08:49:56 +02:00
Sebastian Huber
c934365f23 Update rtems_fatal_source_text()
Add RTEMS_FATAL_SOURCE_PANIC to rtems_fatal_source_text().

Update #3244.
2018-06-05 08:22:49 +02:00
Sebastian Huber
75933d5d25 capture: Use unlimited objects
Avoid resource allocation problems with unlimited objects.
2018-06-04 07:34:38 +02:00
Martin Erik Werner
baee0dc5a3 Fix and extend error message in posix timer test
_Timespec_Equal_to() does not set errno, hence avoid using perror(),
instead use fprintf() to stderr, and extend the error message to provide
information about what the error is (measured timer value after
re-arming is not equal to the configured interval), and how large of a
difference was measured.

Signed-off-by: Martin Erik Werner <martin.werner@aacmicrotec.com>
2018-05-30 15:00:15 -05:00
Sebastian Huber
877f5d66c4 sptests: Remove CONFIGURE_MILLISECONDS_PER_TICK
This configuration define is not supported.
2018-05-28 06:59:52 +02:00
Joel Sherrill
df71100c66 dltests-broken-on-this-bsp.tcfg: Add dl06 2018-05-21 17:57:50 -05:00
Sebastian Huber
70502b480a libtests/block05: Use rtems_blkdev_create()
Update #3358.
2018-05-18 10:44:18 +02:00
Sebastian Huber
30c389849d libblock: Init deps in rtems_blkdev_create()
Update #3358.
2018-05-18 10:44:18 +02:00
Sebastian Huber
02c46f85e1 spcpucounter01: Enable floating-point output 2018-05-14 15:55:13 +02:00
Sebastian Huber
fea9a7a7e5 ftpfs: Always build FTP client
Move FTP client filesystem to separate library libftpfs.a.

Update #3419.
2018-05-02 09:56:48 +02:00
Sebastian Huber
dd8e4b760b libdebugger: Move to separate library
Always build remote TCP support since it depends only on the POSIX
socket API.  It works with the legacy network stack and libbsd.  Move it
to a separate libdebugger.a library to allow an easy use with libbsd via
"-ldebugger -lbsd" otherwise we would have a cyclic dependency between
libbsd.a and librtemscpu.a.

Update #3419.
2018-05-02 09:56:43 +02:00
Sebastian Huber
97a48209e2 tests: Move rtems-test-check.py
Remove shell script variant.
2018-05-02 07:11:03 +02:00
Sebastian Huber
397df7acd8 tests: Remove difftest and sorttimes tools
Close #3418.
2018-05-02 07:11:03 +02:00
Sebastian Huber
b422aa3f4a tests: Remove configure feature checks
Update #3409.
2018-05-02 07:11:03 +02:00
Joel Sherrill
c77cd426f8 Drop executable permissions on .[ch] files 2018-04-30 17:18:49 -05:00
Sebastian Huber
8b5a801e85 smptests/smpschededf02: Add test case 2018-04-27 07:22:38 +02:00
Sebastian Huber
adb85dd473 bsps: Move make/custom/* files to bsps
Adjust various build files.  Remove automatic generation of the
c/src/lib/libbsp/*/acinclude.m4 files from bootstrap script.

This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-23 15:18:42 +02:00
Sebastian Huber
5e8a24ca3e smptests/smpschedaffinity02: Fix configuration 2018-04-23 10:35:35 +02:00
Sebastian Huber
ad071b6884 sptests/sp36: Remove obsolete test program
It tests the (never really working) strict order mutex option. That
option does not exist any more. Mutexes by other good means (spmutex01,
spsem*).

Update #3406.
2018-04-22 15:55:56 +02:00
Sebastian Huber
234f0a2d18 build: Remove subdir-objects from Ada tests
Somehow it does not work.  With this Automake option you get:

gmake[6]: Entering directory '/build/sparc-rtems5/c/erc32/testsuites/ada/sptests'
Making all-am in sp01
gmake[7]: Entering directory '/build/sparc-rtems5/c/erc32/testsuites/ada/sptests/sp01'
gmake[7]: *** No rule to make target 'init.o', needed by 'ada_sp01.exe'.  Stop.

Update #3387.
2018-04-20 14:41:05 +02:00
Sebastian Huber
9964895866 bsps: Move startup files to bsps
Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.
2018-04-20 13:52:14 +02:00
Joel Sherrill
1b2681fefc Multiple BSP tcfg: Disable iconv files. 2018-04-17 10:07:20 -05:00
Chris Johns
696b9121a2 libdl: Fix the tests loading the correct files 2018-04-12 17:59:46 +10:00
Chris Johns
86e79d7955 testsuites/dl06: Add a test for RAP format.
This test loads a RAP format file that contains calls that are not
in the kernel and linked from libm. It uses and test rtems-ld.

Update #2769
2018-04-12 17:54:59 +10:00
Chris Johns
af6168c6ef build: Add support for automake's silent build support. 2018-04-12 07:26:10 +10:00
Chris Johns
b8c5935355 build: Fix make clean.
Update #3254.
2018-04-11 13:26:58 +10:00
Chris Johns
aa567bc1cc configure: Add subdir-objects to all automake flags.
This option silences warning with automake-1.16.1 allowing us to
upgrade to that version.

This change has been tested with automake-1.12.6 and automake-1.16.1.
It seems version 1.16.1 configures slower than 1.12.6 for the same
source and BSP. The newer versions is 6 second slower.

Close #3387.
2018-04-11 11:52:29 +10:00
Chris Johns
7ff743d549 Generate an error if a BSP in the --enable-rtemsbsp list is not valid
Also generate an error if the architecure does not match the --target
architecture given to configure's command line.

Close #2641.
2018-04-11 11:52:29 +10:00
Chris Johns
9e8df1fe2f fstest/fsrfsbitmap01: Update RFS bitmap tests to test fixes.
Add tests to check the patches for this ticket exist and are fixed.

Close #3089
2018-04-11 11:51:57 +10:00
Sebastian Huber
2eaea4223f sptests: Fix AM_CONDITIONAL
Update #3382.
2018-04-10 12:38:37 +02:00