Commit Graph

33056 Commits

Author SHA1 Message Date
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
Sebastian Huber
cc060f0b35 shell: Avoid rtems_error()
Do not use the rtems_error() function since this function pulls in
exit() and abort().  The abort() function pulls in raise() which pulls
in the whole POSIX signals support.  This change saves about 16KiB of
text/rodata on ARM Thumb-2 systems.
2019-05-14 11:11:51 +02:00
Sebastian Huber
b446457f1c bsps/arm: Adjust machine flags for ARMv7-M
Update machine flags for Cortex-M3 and Cortex-M4 based BSPs to account
for Cortex-M3 Errata 602117 which required GCC multilib changes.

Update #3747.
2019-05-14 09:09:02 +02:00
Chris Johns
d0f627d894 libdl: Fix size bug in loading symbols.
This was introduced in 74883be5d4.

Updates #3746
2019-05-14 10:15:51 +10:00
Chris Johns
74883be5d4 libdl: Fix loading symbol that reference unknown sections.
- Make the symbol parsing and loading stage match.
- Check for possible overflow of the tables when loading.

Closes #3746
2019-05-14 08:54:19 +10:00
Chris Johns
0b698ba55e doxygen: score: Fix block comment end marker. 2019-05-14 08:41:10 +10:00
Andreas Dachsberger
f49618df2a doxygen: score: adjust doc in percpudata.h to doxygen guidelines
Update #3706.
2019-05-13 07:42:05 +02:00
Andreas Dachsberger
3238c16226 doxygen: score: adjust doc in smp.h to doxygen guidelines
Update #3706.
2019-05-13 07:42:05 +02:00
Andreas Dachsberger
1bd608b91e doxygen: score: adjust doc in onceimpl.h to doxygen guidelines
Update #3706.
2019-05-13 07:42:05 +02:00
Andreas Dachsberger
2463c100cc doxygen: score: adjust doc in muteximpl.h to doxygen guidelines
Update #3706.
2019-05-13 07:42:05 +02:00
Andreas Dachsberger
7b90bb5929 doxygen: score: adjust doc in wkspace.h to doxygen guidelines
Update #3706.
2019-05-13 07:42:05 +02:00
Andreas Dachsberger
904c231297 doxygen: score: adjust doc in watchdogticks.h to doxygen guidelines
Update #3706.
2019-05-13 07:42:05 +02:00