Commit Graph

33088 Commits

Author SHA1 Message Date
Sebastian Huber
d3c4d48da2 record: Simplify rtems_record_client_context 2019-08-16 22:53:47 +02:00
Chris Johns
15b6f44deb arm/tlb: Fix the MP affinity check to invalidate ASIDs.
- The TI's CortexA7 MP MPIDR register returns 0

Updates #3760
2019-08-12 13:58:31 +10:00
Chris Johns
df25650502 libdebugger/arm: Support ROM tables.
- Parse the ROM taables if present to find the component base for
  the debug hardware. This lets the RPi2 run dl09.exe.
2019-08-12 08:56:37 +10:00
Chris Johns
a4d7e4cee7 arm/raspberry: Set the workspace based on the mailbox version.
- Update the linkcmd file to support configure settings

- Set the workspace size based on the revision value
2019-08-12 08:49:33 +10:00
Chris Johns
9cb19ded5c libdl/debugger: Fix the broken list delete when unloading an object module.
Closes #3777
2019-08-12 08:49:33 +10:00
Vijay Kumar Banerjee
886956afd2 bsp/beagle: Add nocache section
Closes #3780
2019-08-07 20:38:43 +02:00
Sebastian Huber
cc91fae43a record: Change thread name encoding
This scheme is easier to decode.
2019-08-06 07:51:42 +02:00
Chris Johns
8c66acc8dc libdl/arm: Add support for ARM trampolines
Closes #3776
2019-08-04 12:32:50 +10:00
Christian Mauderer
163927e502 bsps/beagle: Remove dead code from GPIO.
Remove static stuff that is never used.
2019-08-03 11:53:41 +02:00
Chris Johns
7d4f74e968 arm/beagle: Add libdebugger support.
- Port the jbang code from C++ to C to enable DBGEN.
- Hook the libdebugger ARM backend support to return the base address
  of the debug register set.
2019-07-31 08:33:05 +10:00
Chris Johns
cb1e8497df libdebugger: ARM fixes for Cortex-A8 and ARM mode.
- Fix destorying the target and thread parts.
- Fix the ARM backend to support Cortex-A8 and ARM mode code.
- Use the DBGDSCR interrupt mask when single stepping.
- Use the DBGDSCR method of entry to debug mode to filter the
  execptions.
- Add support for BSPs to control the ARM backend.
2019-07-31 08:33:05 +10:00
Chris Johns
98d6792376 arm: Select the TLB invalidate based on the core's Id variant.
Closes #3760
2019-07-31 08:33:05 +10:00
Vaibhav Gupta
57e0173584 psxtests: Add ndbm test suite
Joel Sherrill <joel@rtems.org> modified the patch to
	add autoconf logic to avoid building this new test
	unless the tool chain include <ndbm.h>. The ensures
	that git bisect continues to work and that the addition
	of this test does not immediately force the entire
	community to update their tools.
2019-07-30 10:18:09 -05:00
Sebastian Huber
c5fd79cd47 arm/raspberrypi: Fix linker map
Add NULL-pointer protection.  Make MMU table read-only.  Move vector
table to start section.

Close #3774.
2019-07-30 07:25:13 +02:00
Sebastian Huber
036717eda4 record: Add support for thread names 2019-07-30 07:25:10 +02:00
Sebastian Huber
5ee70c5487 Add and use THREAD_DEFAULT_MAXIMUM_NAME_SIZE 2019-07-30 07:21:06 +02:00
Chris Johns
5a678de90c libdl/arm: Fix ARM mode trampoline parsing of relocs
- No need to dump globals syms in test dl01 when tracing

Closes #3775
2019-07-28 09:12:53 +10:00
Sebastian Huber
1e6380baf2 bsps/arm: Move HYP to SVC change to start.S
This fixes the corruption of r3 by the call to
bsp_start_arm_drop_hyp_mode().

Moving the code makes it easier to review changes in start.S.

Close #3773.
2019-07-26 08:12:20 +02:00
Sebastian Huber
0ee2125a92 bsps/arm: Move register init to start.S
This makes it easier to review changes in start.S.

Update #3773.
2019-07-26 08:00:48 +02:00
Sebastian Huber
0f5c1d5344 bsps/arm: Remove register init for ARMv7-M
There are no known ARMv7-M chips with a dual lockstep mode.

Update #3773.
2019-07-26 08:00:39 +02:00
Joel Sherrill
6eae586050 ticker/init.c: Error should say clock set not get 2019-07-22 12:52:46 -05:00
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