Commit Graph

14738 Commits

Author SHA1 Message Date
Sebastian Huber
affb282b11 bsps: Remove empty tm27.h variants
Update #3254.
2017-11-27 07:32:53 +01:00
Sebastian Huber
e58e29fdb9 Remove coverhd.h
This header file contained timing overhead values which are hard to
maintain.

Update #3254.
2017-11-24 15:27:01 +01:00
Sebastian Huber
f64f7a2f29 bsp/qoriq: Implement bsp_reset() 2017-11-22 09:40:24 +01:00
Sebastian Huber
86a80ee1af bsps: Add BSP_VERBOSE_FATAL_EXTENSION
Add BSP_VERBOSE_FATAL_EXTENSION to RTEMS_BSP_CLEANUP_OPTIONS to
optionally print the RTEMS version, the fatal source and the fatal code
in the shared bsp_fatal_extension().

Close #3248.
2017-11-22 09:40:24 +01:00
Sebastian Huber
3dd381f043 bsps: Simplify RTEMS_BSP_CLEANUP_OPTIONS
Remove BSP-specific defaults for RTEMS_BSP_CLEANUP_OPTIONS to simplify
the BSP configuration and documentation.  Change defaults to:

BSP_PRESS_KEY_FOR_RESET=0
BSP_RESET_BOARD_AT_EXIT=1
BSP_PRINT_EXCEPTION_CONTEXT=1
2017-11-22 09:40:24 +01:00
Sebastian Huber
07d96453a9 powerpc: Remove _BSP_Fatal_error()
BSPs can use the bsp_fatal_extension() to provide BSP-specific fatal
error handling.  There is no need for a _BSP_Fatal_error().

Close #3246.
2017-11-22 09:40:23 +01:00
Sebastian Huber
1c193a26d2 powerpc: Replace BSP_panic() with rtems_panic()
Due to a new rtems_panic() implementation, it is possible to replace the
PowerPC-specific BSP_panic() with rtems_panic().  Remove BSP_panic()
implementations.

Close #3245.
2017-11-22 09:40:23 +01:00
Sebastian Huber
a8bf9a3f7a bsps: Add default getentropy() implementation
Update #3239.
Close #3249.
2017-11-22 09:40:22 +01:00
Daniel Hellstrom
4d7e4bb213 leon, gr1553rt: adding SMP protection
Add device spin-lock around internal data structures. Since the driver
provides a low-level C API accessing the descriptors the application
still needs to implement part of the SMP synchonization needed between
Interrupt handler and tasks.

Close #2355.
2017-11-21 10:28:02 +01:00
Sebastian Huber
5018894ee1 bsps/powerpc: Fix PPC_EXC_CONFIG_USE_FIXED_HANDLER
For the SPE support we must store the upper half of r3 as well.

Update #3085.
2017-11-20 07:53:09 +01:00
Sebastian Huber
3d374d90f8 bsps: Use a state in default getentropy()
Use the boot time to initialize the state.  Use the state, the current
CPU counter and a very simple pseudo random number generator for
getentropy(). At least, this enables to pass the test "GETENTROPY 1" on
ERC32.

Update #3239.
2017-11-20 07:53:08 +01:00
Christian Mauderer
2e2a41ecd9 bsp/atsam: Add timing for RAM mt48lc16m16a2p-6a. 2017-11-17 14:14:18 +01:00
Christian Mauderer
a5d49ebd37 bsp/atsam: Improve SDRAM initialization.
According to the manual, MR has to be read back and a memory barrier has
to be added after MR is written during SDRAM initialization.
2017-11-17 14:14:18 +01:00
Christian Mauderer
d00a7d1c22 bsp/atsam: Move clock and SDRAM init to SRAM.
If necessary, the BSP can now have it's clock and SDRAM initialization
in the SRAM instead of the SDRAM. This allows to change the clock
frequency during the startup of an SDRAM application.
2017-11-17 14:13:40 +01:00
Christian Mauderer
3fbaaa8b74 bsp/atsam: Make clock application configurable. 2017-11-17 14:07:46 +01:00
Christian Mauderer
a9de9a7b95 bsp/atsam: Add getentropy().
Update #3239.
2017-11-17 07:26:57 +01:00
Christian Mauderer
ca4895cb9c getentropy: Add cpu counter based implementation.
Update #3239.
2017-11-17 07:26:52 +01:00
Javier Jalle
2727bc7f80 leon, grspw_router: Clear only error bits defined by clear mask 2017-11-14 10:27:20 +01:00
Javier Jalle
56cf340f10 leon, grspw_router: Allow thread safe per-bit managing of pctrl regs 2017-11-14 10:27:20 +01:00
Javier Jalle
cc40f0bfca leon, grspw_router: Move register bit defs to header 2017-11-14 10:27:20 +01:00
Javier Jalle
59af2cc58e leon, grspw_router: Changed driver C API
SMP safe by spin-lock protection and semaphore. On spin-lock per SpW/AMBA
port to allow multiple parallel register operations per port. A common
semaphore for general SpW router configuration such as routing table.

Move to a C API instead of using the I/O Manager. The SpW router driver
does not perform any I/O only management of the router.

Update #2355.
2017-11-14 10:27:20 +01:00
Sebastian Huber
cb406870aa Change RTEMS_API from 5.0 to 5
This fixes the legacy Makefile based build system which expects
RTEMS_API to be identical to the tool chain version.

Update #3220.
2017-11-13 08:39:54 +01:00
Joel Sherrill
a6bf052a3b mvme162: Fix errors tripped by transition to using polled IO for tests 2017-11-10 14:40:46 -06:00
Joel Sherrill
cba8970e80 mcf5206elite/include/bsp.h: Rename delay() to rtems_bsp_delay() to avoid conflicts 2017-11-10 14:40:46 -06:00
Joel Sherrill
52841b5800 csb360/include/bsp.h: Rename delay() to rtems_bsp_delay() to avoid conflicts 2017-11-10 14:40:46 -06:00
Sebastian Huber
4a14751879 Upgrade to 5.0.0
Tool name will be "rtems5", e.g. arm-rtems5-gcc.

Next release will 5.1.0.  Branch version after release will be 5.1.1.
Next master will be 6.0.0.
2017-11-09 08:12:11 +01:00
Sebastian Huber
7078a00b13 bsp/t32mppc: Use fixed exception handlers 2017-11-08 13:14:30 +01:00
Sebastian Huber
fdf0e55cf9 bsp/imx: Add UART baud change
Update #3090.
2017-11-08 08:43:27 +01:00
Sebastian Huber
336fe3b9fd bsp/imx: Better utilize UART transmit FIFO
Update #3090.
2017-11-08 08:43:27 +01:00
Sebastian Huber
4438c4d826 bsp/imx: More robust and faster bsp_reset()
Update #3090.
2017-11-02 13:44:01 +01:00
Sebastian Huber
4b055e23e9 bsp/imx: Drain console before reset
Update #3090.
2017-11-02 11:24:00 +01:00
Sebastian Huber
c52a9682c1 bsp/imx: Implement bsp_reset()
Update #3090.
2017-11-02 11:23:59 +01:00
Hesham Almatary
8fa827cc83 bsp: Make riscv_generic work for both riscv32 and riscv64 - v2
Update #3109
2017-11-01 10:11:20 +11:00
Hesham Almatary
11ff3a9e72 cpukit: RISC-V - make riscv32 code work for riscv64 - v2
* Use #ifdefs for 32/64 bit code
* Use unsigned long which is 32-bit on riscv32 and 64-bit on riscv64 (register size)
* Move the code to a new shared riscv folder to be shared between riscv32 and riscv64
* Rename RTEMS_CPU extracted from command line to shared riscv target s/riscv*/riscv

Update #3109
2017-11-01 10:10:27 +11:00
Sebastian Huber
cf614eca60 riscv32: Add missing preinstall.am
Update #3109.
2017-10-28 13:33:55 +02:00
Hesham Almatary
6d85e05144 bsp: Add new riscv_generic bsp v3
* Only runs/tested on simulator/spike.
* Ticker, hello, capture work proprely
* Tested via RTEMS Tester, Passed: 525/565 (92%)

Update #3109
2017-10-28 18:41:42 +11:00
Hesham Almatary
a5273abe3f Add riscv32 to autotools files v3 2017-10-28 18:27:42 +11:00
Daniel Hellstrom
cfc3604100 leon,gr740: start ASR22:23 up-counter on boot by writing ASR22
According to data sheet bit 31 in ASR22 must be written with a zero
to start the up-counter. GRMON starts the up-counter for us. This
patch is important when running in "flight" from ROM without GRMON.
2017-10-25 12:52:33 +02:00
Christian Mauderer
248f8679a7 bsps/arm: Remove DWT based clock.
It seems that the DWT CYCCNT does not advance when the CPU waits on a
WFI instruction.

That leads to the effect that for example on the atsamv BSP a sleep(1)
needs something in the range of a few minutes (depending on the
configured systick). A debugger might disables some deep sleep modes so
that the problem only appears if the application is executed without a
debugger.
2017-10-18 09:02:01 +02:00
Sebastian Huber
67015b617e dev/serial: Lazy update of NS16550 settings
Updates of the line control and baud divisor while transfers are in
progress may lead to unpredictable behaviour on some chips. Perform the
updates only if necessary.

Close #3198.
2017-10-18 07:21:54 +02:00
Pavel Pisa
f4009d8b8e bsp/tms570: remove duplicate of TMS570_SCI_FLR_TX_EMPTY in console driver.
Initial idea has been that check for both, TMS570_SCI_FLR_TX_EMPTY
and TMS570_SCI_FLR_TXRDY is required before console driver parameters
update.

closes #2883.
2017-10-13 01:02:33 +02:00
Joel Sherrill
05ec32aa56 lpc2362-testsuite.tcfg: Add fsrofs01 to excluded tests 2017-10-12 12:23:26 -05:00
Sebastian Huber
ee537ea3dd ada-tests: Move to testsuites/ada
This solves a build dependency issue, e.g. building tests before
librtemsbsp.a exists.

Close #3079.
2017-10-12 10:53:16 +02:00
Sebastian Huber
b3874e1531 ada-tests: Use _SUBDIRS instead of SUBDIRS
Update #3079.
2017-10-12 09:04:17 +02:00
Christian Mauderer
16fcd56a42 bsp/atsam: Allow to change optimization settings.
Allow to overwrite the optimization settings during configuration.
2017-10-12 08:59:22 +02:00
Christian Mauderer
2ae0acbb71 bsp/atsam: Add bsp_restart. 2017-10-12 08:59:22 +02:00
Joel Sherrill
14e5a0824b Fix warnings for using C/ObjC specific GCC flags with C++
Closes #3181.
2017-10-11 21:32:32 -05:00
Sebastian Huber
80933ab316 bsps/powerpc: Fix robust thread dispatch again
Use the saved MSR to account for FPU and AltiVec settings.

Update #2811.
2017-10-09 07:38:15 +02:00
Joel Sherrill
19cbd1943d pc386/.../bspreset.c: Readd proper reset code.
The removal of the Edison code removed the wrong part of the
conditional.

Closes #3172.
2017-10-08 22:26:13 -05:00
Sebastian Huber
170df3d9b1 bsp/imx: Add SPI bus driver
Update #3090.
2017-10-06 12:49:30 +02:00