Commit Graph
32917 Commits
Author SHA1 Message Date
Chris Johns 270c5df5db Makefile.inc: Add support for staged builds.
- Allow the RTEMS_ROOT to be conditionally supplied. This
  can be a staging area before being moved to the final
  install prefix location.

- Update the default.cfg to use RTEMS_ROOT and to not rely on
  the exec_prefix so it's paths can be staged.

- Fix and add the needed configure subs.

Closes #3768
2019-07-19 17:50:05 +10:00
Chris Johns c4d89deaa6 score/interr: Fix comments. 2019-07-06 17:14:22 +10:00
Sebastian Huber e9c83b46a0 bsps: Regenerate headers.am
Update #3269.
2019-07-05 09:04:34 +02:00
Chris Johns 5cbee18e00 misc/rtemsdefaultconfig: Add bdbuf so libbsd can be used with configure. 2019-07-02 18:44:18 +10:00
Christian Mauderer b89d6cc5e4 bsp/beagle: Partial re-write of I2C driver.
The old driver worked well for EEPROMS with the RTEMS EEPROM driver. But
it had problems with a lot of other situations. Although it's not a
direct port, the new driver is heavily modeled after the FreeBSD ti_i2c
driver.

Closes #3764.
2019-06-29 09:37:24 +02:00
Sebastian Huber 5803f3738f score: Add and use _Thread_Get_unmapped_priority().
Add and use _Thread_Get_unmapped_real_priority().
2019-06-28 08:30:11 +02:00
Chris Johns c43071f523 arm: Return the current handler from arm_cp15_set_exception_handler
Closes #3762
2019-06-28 09:01:27 +10:00
Sebastian Huber 9b858ee6ef bsp/motorola_powerpc: Fix linker command file
Fix the __size symbol value to reflect the total size of the bootloader.
This prevents a bootloader crash with application images above a certain
threshold (e.g. fileio sample program).

Update #3727.
2019-06-27 14:36:56 +02:00
Sebastian Huber 54ac945764 libdebugger: Unmap thread priorities 2019-06-26 07:57:50 +02:00
Sebastian Huber dc581f29ab bsp/atsam: Enable configuration of SDRAMC_LPR 2019-06-21 06:58:48 +02:00
Vaibhav Gupta d9fcb22a61 psxtests: Add psxinttypes01 for <inttypes.h> methods 2019-06-19 11:03:35 -05:00
Joel Sherrill 373cd1c545 rtems/confdefs.h: Fix typo 2019-06-19 10:46:09 -05:00
Sebastian Huber a67b9b06a1 atsam: Add ATSAM_POWER_WAIT_MODE 2019-06-18 12:52:53 +02:00
Sebastian Huber 522cde4281 atsam: Enable fast startup via RTC alarm 2019-06-18 11:31:48 +02:00
Sebastian Huber bb24892ad4 bsp/atsam: Use proper API 2019-06-18 11:10:55 +02:00
Sebastian Huber 2be6ab7f77 dev/sc16is752: Add set/get EFCR IO controls 2019-06-14 07:41:36 +02:00
Sebastian Huber 6ff1da40c7 dev/sc16is752: Add RS485 mode variants 2019-06-14 07:35:21 +02:00
Sebastian Huber d7d0bba8cc bsp/atsam: Do not disable the WDT
The watchdog timer (WDT) can be configure only once.  Do not touch it in
the BSP since the application may want to use it.
2019-06-13 08:48:53 +02:00
Sebastian Huber ee36616804 bsp/atsam: Improve RTC power driver
Accept a time interval up to 24h.
2019-06-13 08:48:50 +02:00
Sebastian Huber 5d4a81f501 bsp/atsam: Fix RTC_SetTimeAlarm()
Set the alarm time according to the note in the datasheet.
2019-06-12 13:50:19 +02:00
zhengxiaojun 38b29232fd libdl/rap: fix RAP file load error. 2019-06-12 17:01:27 +10:00
Maksim E. Kozlov 2a720f4e55 sparc: Fix mistakenly cleared PSR[EF] bit.
The superfluously modified %l0 had no effect if the branch is not taken.
This change clarifies the code.
2019-06-07 07:35:15 +02:00
Maksim E. Kozlov a381870518 sparc: Fix missed restoring of PSR in syscall_lazy_fp_switch
It is needed to restore PSR just before return because condition
codes are dirty after the CMP instructions and this may cause
undefined program behavior after returning from the switching
procedure (on following branch instruction, for example).

Close #3756.
2019-06-06 08:40:47 +02:00
Sebastian Huber 7d7cbf3c51 sparc: Improve _CPU_Context_validate()
Use the FPU and check that the condition codes in the PSR are preserved.

Update #3756.
2019-06-06 08:40:43 +02:00
Sebastian Huber 98fc60145c bsp/lpc24xx: Fix LPC24XX_IO_PORT_COUNT 2019-06-04 12:04:55 +02:00
Sebastian Huber f419349a13 bsps/powerpc: Adjust ppcboot.lds
The GNU ld had a couple of changes which resulted in a broken bootloader
image generation.  Recent linker versions tie assignments to their
nearest output section statement.  Place all absolute symbols which are
used with @sectoff relocations into a special section.

See also:

"Binutils 2.28 on PowerPC: dangerous relocation: generic linker can't
handle R_PPC_SECTOFF_HA"

https://www.sourceware.org/ml/binutils/2019-05/msg00183.html

Update #3727
2019-05-27 10:14:48 +02:00
Sebastian Huber 20bd667d8a bsps: Fix warnings in greth 2019-05-27 07:35:07 +02:00
Sebastian Huber 10251b3a8f score: Compact objects class indices 2019-05-22 07:51:14 +02:00
Chris Johns 327e45dac2 libdl: Sort object file symbols and use a binary search to find
- Replace the linear object file symbol search with a binary search.
- Sort the object file symbols after loading.

Closes #3748
2019-05-22 09:28:06 +10:00
Sebastian Huber 5fa893ea20 score: Add _SMP_Unicast_action() 2019-05-20 09:31:25 +02:00
Sebastian Huber 41cddcc6e1 score: Add _Per_CPU_Wait_for_job() 2019-05-20 09:06:48 +02:00
Sebastian Huber 9b8e85e23a score: Remove superfluous include 2019-05-20 09:01:18 +02:00
Sebastian Huber 577293f0a9 score: Add _SMP_Synchronize() 2019-05-20 09:01:15 +02:00
Sebastian Huber bf867c5537 score: Remove unused SMP_MESSAGE_TEST
All uses were replaced by per-processor jobs.
2019-05-20 08:54:31 +02:00
Sebastian Huber fe24820e95 smpipi01: Use per-CPU jobs for IPI flood test 2019-05-20 08:54:31 +02:00
Sebastian Huber 21e691b7d7 smpipi01: Ensure IPI works on all processors 2019-05-20 08:54:31 +02:00
Sebastian Huber 7cb881f5b1 smpipi01: Use per-CPU jobs for pending IPI test 2019-05-20 08:54:31 +02:00
Sebastian Huber c63e8bbeb9 score: Modify _Per_CPU_Perform_jobs()
Process only the jobs initially registered on the processing list.  This
makes it possible to add jobs for the current processor in a job
handler.  These jobs are processed with the next
SMP_MESSAGE_PERFORM_JOBS message.  The lock is only acquired and
released once.
2019-05-20 08:54:27 +02:00
Sebastian Huber 85d6e845d2 score: Add _Per_CPU_Add_job() 2019-05-20 08:52:39 +02:00
Sebastian Huber 8fa14da002 score: Move per-processor job data structures
This enables re-use for other purposes, e.g. replacement for
SMP_MESSAGE_TEST.
2019-05-20 08:52:25 +02:00
Sebastian Huber 1a971d836c score: Remove SMP_MESSAGE_CLOCK_TICK
Use _SMP_Multicast_action() instead.
2019-05-20 08:49:39 +02:00
Sebastian Huber 3b2481f9a7 score: Simplify _SMP_Multicast_action()
Move resposibility to disable thread dispatching to the caller of
_SMP_Multicast_action().  Using an interrupt disable for this purpose is
questionable.
2019-05-20 08:49:39 +02:00
Sebastian Huber 7fdf48aaf2 score: Add _SMP_Othercast_action() 2019-05-20 08:49:39 +02:00
Sebastian Huber 658700449d score: Add _SMP_Broadcast_action() 2019-05-20 08:49:39 +02:00
Sebastian Huber 9f52acb5e5 smptests: Move SMP broadcast action test case 2019-05-20 08:49:39 +02:00
Sebastian Huber 317997fd1b smpmulticast01: Use T_TEST_CASE() 2019-05-20 08:49:39 +02:00
Sebastian Huber 4f0686382b score: Use dedicated lock for per-CPU jobs 2019-05-20 08:49:35 +02:00
Sebastian Huber b4f895ec17 posix: Remove unused OBJECTS_POSIX_INTERRUPTS 2019-05-20 08:33:09 +02:00
Sebastian Huber 45d06591f1 bsps: Always build generic interrupt support
This makes it possible to write tests for the generic interrupt
controller support.

Update #3269.
2019-05-16 07:29:24 +02:00
Sebastian Huber 327ae9ace4 score: Fix per-CPU job done handling 2019-05-15 15:38:02 +02:00