Commit Graph

33870 Commits

Author SHA1 Message Date
Christian Mauderer
eb2b915609 cpu/armv7m: Fix table based init for ARMV7M_MPU
Somehow the table index has been missing in the latest patch version.
With that, the configuration for the first region has been applied
multiple times.

Update #4180
2020-12-14 11:33:46 +01:00
Christian Mauderer
9b3def237a bsps/arm/imx*: Fix location of shared headers
When moving the headers from the imx BSP to the shared area, the wrong
directory has been selected. This patch fixes that problem.

Update #4180
2020-12-14 11:29:36 +01:00
Christian Mauderer
b63a187ec0 bsps/imxrt: Split up dts.
This allows simpler creation of own dts files for custom boards.

Update #4180
2020-12-14 11:10:38 +01:00
Christian Mauderer
1618e69f0e shell: Add i2c and spi commands
This adds some commands that are usefull for debugging simple serial
interfaces.

Even if they are a complete re-implementation, the i2c* commands use a
simmilar call like the Linux i2c tools.
2020-12-14 10:48:57 +01:00
Christian Mauderer
66723ee6d2 bsp/rtl22xx: Fix non-ASCII character 2020-12-14 10:48:57 +01:00
Christian Mauderer
2f509b572f bsp/mpc83xx: Fix non-ASCII characters 2020-12-14 10:48:57 +01:00
Christian Mauderer
21a0d20c68 bsps: Replace non-ASCII bullet points 2020-12-14 10:48:57 +01:00
Christian Mauderer
86d3c27525 bsps: Replace non-ASCII trademark symbol 2020-12-14 10:48:57 +01:00
Christian Mauderer
2fbc8897fa bsps: Replace non-ASCII copyright character 2020-12-14 10:48:57 +01:00
Sebastian Huber
fcd9618ac8 config: Fix invalid static assertions in C
Expressions in static assertions must be integral constant expressions.  In
integral constant expressions the use of address constant expressions is not
allowed.

In static initializers the address constant expressions are allowed.  Introduce
a new macro _CONFIGURE_ASSERT_NOT_NULL() which leads to a compile time error if
the second parameter is NULL.  It generates error messages like this if for
example

  #define CONFIGURE_INIT_TASK_ENTRY_POINT NULL

is provided by the application:

cpukit/include/rtems/confdefs/inittask.h:51:26: error: size of unnamed array is negative
   51 |     ( _type ) sizeof( int[ ( _value ) != NULL ? 1 : -1 ] ) )
      |                          ^
cpukit/include/rtems/confdefs/inittask.h:170:3: note: in expansion of macro '_CONFIGURE_ASSERT_NOT_NULL'
  170 |   _CONFIGURE_ASSERT_NOT_NULL(
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~

This fix relates to CID 1470570 (PARSE_ERROR).

Update #4181.
2020-12-12 11:35:22 +01:00
Kinsey Moore
9edca35dbe bsps/gicv3: Resolve build warnings on 64bit 2020-12-11 15:32:15 -06:00
Kinsey Moore
9e7b5ebd7d tm27: Use generic cpu index accessor
The arm_cp15 function for accessing the current CPU index is specific
to ARMv7 while this header is used for ARMv8 as well. Instead, use a
generic accessor that is part of the standard CPU API.
2020-12-11 15:32:15 -06:00
Sebastian Huber
bb57361bfd build: Clarify ARM_MMU_USE_SMALL_PAGES description 2020-12-11 11:40:35 +01:00
Jan Sommer
cadbd7d150 bsp/xilinx_zynq: Enable support for 4kiB MMU pages
- Disabled by default
- Enable using ARM_MMU_USE_SMALL_PAGES option

Close 4192.
2020-12-11 11:40:35 +01:00
Jan Sommer
1a7afb55a3 bsps/arm: Fix MMU small pages support
- For small tables only round to the next 4kiB instead of 1MiB

Close #4184.
2020-12-11 06:54:14 +01:00
Kinsey Moore
d188e6e882 cpukit/aarch64: Add explanation of exception flow 2020-12-10 11:37:50 -06:00
Kinsey Moore
f046af5804 cpukit/aarch64: Use hex consistently for offsets 2020-12-10 11:37:50 -06:00
Sebastian Huber
105e52032e bsps: Remove ARM GIC SGI target filter
Remove the target filter for software-generated interrupts since this
feature is not supported by the affinity routing in GICv3.

Update #4202.
2020-12-10 09:42:50 +01:00
Sebastian Huber
b6925e10c8 bsps: Fix GICv3 arm_gic_trigger_sgi()
Use the targets parameter to determine the targets of the SGI.  Change
targets parameter type to 32-bit to ease the parameter passing.  GICv3
supports up to 16 targets.

Update #4202.
2020-12-10 09:42:49 +01:00
Sebastian Huber
6b79abfbbc bsp/realview-pbx-a9: Fix smpfatal04 test 2020-12-10 09:42:49 +01:00
Sebastian Huber
617aeaf572 bsps/arm: Move BSP_START_IN_HYP_SUPPORT option
Clarify documentation.

Update #4202.
2020-12-10 07:58:03 +01:00
Sebastian Huber
bd7bef528d bsps/arm: Support system level ARM Generic Timer
Update #4202.
2020-12-10 07:58:03 +01:00
Sebastian Huber
5efa15b49d bsps/arm: Unify ARM Generic Timer options
Update #4202.
2020-12-10 07:58:03 +01:00
Sebastian Huber
e68827e1d9 arm/cache-cp15: Support Armv8
Update #4202.
2020-12-10 07:58:03 +01:00
Sebastian Huber
9955487de6 arm: Support Armv8 in <rtems/score/arm.h>
Update #4202.
2020-12-10 07:58:03 +01:00
Sebastian Huber
368fab5a82 bsps: Print CPU in default fatal error extension 2020-12-10 07:58:03 +01:00
Sebastian Huber
293cde73f3 build: Exclude performance-0 in small mem BSPs 2020-12-10 07:58:03 +01:00
Sebastian Huber
9ce47a52a4 bsps: Add SMP support to ARM GICv3
Update #4202.
2020-12-09 17:30:52 +01:00
Sebastian Huber
0e779a4c2e smptests/smpipi01: Fix sporadic test failure 2020-12-09 08:22:42 +01:00
Kinsey Moore
2365c93745 spec: Move zynq-uart into its own object
Currently, zynq-uart code is always built and has some requirements for
BSPs that use it. Instead of making all BSPs satisfy that requirement or
working around it by setting defaults, this moves the zynq-uart code
into its own spec build object so it can be included if needed.
2020-12-04 12:42:06 -06:00
Kinsey Moore
74c1c4021b spec/optconminor: Fix value type
The option for defining the console minor should be an integer, not a
boolean.
2020-12-04 07:57:15 -06:00
Kinsey Moore
a92d4ae685 Add AArch64 ZynpMP BSP
This adds a BSP family that runs on the Xilinx Ultrascale+ MPSOC
(ZynqMP) family of chips. It is configured to be usable on the Qemu
ZCU102 machine definition and should be almost trivially portable to
ZynqMP development boards and custom hardware. It is also configured to
be usable with libbsd.
2020-12-04 07:57:15 -06:00
Kinsey Moore
5686b44d13 zynq-uart: Fix set_attributes implementation
The zynq-uart set_attributes implementation was configured to always
return false which causes spconsole01 to fail. This restores the
disabled implementation which sets the baud rate registers
appropriately and allows spconsole01 to pass. This also expands the
set_attributes functionality to allow setting of the stop bits,
character width, and parity.
2020-12-03 17:35:28 -06:00
Kinsey Moore
2b56f5af5e samples/unlimited: Prevent compile error
For architectures with relatively large minimum stack sizes, this test
breaks during compilation due to a static check. The init task stack
size should not need to be set for this test.
2020-12-03 17:33:37 -06:00
Sebastian Huber
5b064a49f9 bsps: Remove unused bsp_stack_main_size 2020-12-03 15:41:38 +01:00
Sebastian Huber
7930fbdd9a score: Fix discard 'const' qualifier warning 2020-12-03 15:41:38 +01:00
Sebastian Huber
768327d06d rtems: Generate <rtems/rtems/timer.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-12-03 07:12:12 +01:00
Sebastian Huber
e2f888d145 score: Free old name in _Objects_Set_name()
This is the behaviour document in the RTEMS Classic API Guide.
2020-12-03 07:12:12 +01:00
Sebastian Huber
766009b4f1 rtems: Fix rtems_object_set_name()
Return RTEMS_NO_MEMORY if there is not memory available to duplicate the
name.
2020-12-03 07:12:12 +01:00
Sebastian Huber
13bab346c5 score: Return a status in _Objects_Set_name() 2020-12-03 07:12:12 +01:00
Sebastian Huber
65969c1b73 rtems: Generate <rtems/rtems/object.h>
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.

Update #3899.
Update #3993.
2020-12-03 07:12:12 +01:00
Kinsey Moore
dfa34e0dbb spec/a53: Fix SPDX lines 2020-12-02 18:51:40 -06:00
Kinsey Moore
a151ee167e bsps: Move ARM GICv2 driver to bsps/shared
This moves the ARM GICv2 driver to bsps/shared to be usable by AArch64
code.
2020-12-02 18:51:40 -06:00
Kinsey Moore
f0859573f9 bsps: Move zynq-uart to bsps/shared
This moves the zynq-uart driver from bsps/arm/shared to bsps/shared to
accomodate use by AArch64 BSPs.
2020-12-02 18:51:40 -06:00
Sebastian Huber
ef0fe8ee60 dosfs: Fix Doxygen group placement
Update #3706.
2020-12-02 13:18:42 +01:00
Sebastian Huber
3393ff1dcf libfs: Fix Doxygen group placement
Update #3706.
2020-12-02 13:11:11 +01:00
Sebastian Huber
ab8538385b nfsclient: Remove from Doxygen output
The libnetworking is excluded from the Doxygen output.  Exclude also the
nfsclient source code, otherwise there are some orphaned Doxygen groups.

Update #3706.
2020-12-02 13:03:49 +01:00
Sebastian Huber
295b05f965 nfsclient: Rework Doxygen groups
Update #3706.
2020-12-02 13:03:32 +01:00
Sebastian Huber
7f1ba9c75c build: Add <rtems/rtems/clockimpl.h> 2020-12-02 11:41:09 +01:00
Sebastian Huber
1fa3821ad6 score: Fix Doxygen group membership
Update #3706.
2020-12-02 11:34:33 +01:00