Commit Graph

34087 Commits

Author SHA1 Message Date
Ryan Long
91e38f8a8f gr_rasta_adcdac.c: Fix Unchecked return value from library (CID #1399780)
CID 1399780: Unchecked return value from library in gr_rasta_adcdac_init1().

Closes #4287
2021-03-05 14:00:06 -06:00
Ryan Long
17d525b584 gr_rasta_tmtc.c: Fix Unchecked return value from library (CID #1399771)
CID 1399771: Unchecked return value from library in gr_rasta_tmtc_init1().

Closes #4286
2021-03-05 14:00:06 -06:00
Ryan Long
570b558955 gr_leon4_n2x.c: Fix Unchecked return value from library (CID #1399767)
CID 1399767: Unchecked return value error from library in gr_cpci_leon4_n2x_init1().

Closes #4285
2021-03-05 14:00:06 -06:00
Ryan Long
0d33d10613 pci_cfg_read.c: Fix Missing break in switch (CID #1399723)
CID 1399723: Missing break in switch in pci_read_addressable().

Closes #4279
2021-03-05 14:00:06 -06:00
Ryan Long
b84ce61aa3 gr_rasta_io.c: Fix Unchecked return value from library (CID #1399763)
CID 1399763: Unchecked return value from library in gr_rasta_io_init1().

Closes #4284
2021-03-05 14:00:06 -06:00
Ryan Long
0443601356 gr_rasta_spw_router.c: Fix Unchecked return value from library (CID #1399760)
CID 1399760: Unchecked return value from library in gr_rasta_spw_router_init1().

Closes #4283
2021-03-05 14:00:05 -06:00
Ryan Long
c7eb89f82b cpuusagetop.c: Fix three Missing break in switch Coverity errors
CID 1399726: Missing break in switch in task_usage().
CID 1399728: Missing break in switch in task_usage().
CID 1399742: Missing break in switch in task_usage().

Closes #4278
2021-03-05 14:00:05 -06:00
Ryan Long
13d6fae8dd grtc.c: Fix four Missing break in switch Coverity errors
CID 1399761: Missing break in switch in process_dma().
CID 1399765: Missing break in switch in process_dma().
CID 1399766: Missing break in switch in process_dma().
CID 1399777: Missing break in switch in process_dma().

Closes #4277
2021-03-05 14:00:05 -06:00
Ryan Long
1eaf4e461f grspw.c: Fix Unchecked return value (CID #1399781)
CID 1399781: Unchecked return value in grspw_device_init().

Closes #4259
2021-03-05 14:00:05 -06:00
Jan Sommer
6ebf376bf2 bsps/shared: Allow setting baud rate for zynq uart 2021-03-05 19:06:25 +01:00
Kinsey Moore
f662420667 spec/aarch64: Rename ZynqMP QEMU BSPs
The current ZynqMP BSPs don't have _qemu in their name as do all other
RTEMS BSPs that are specifically made to run on QEMU. This fixes the
naming for those ZynqMP BSP variants for easier identification.
2021-03-05 10:40:28 -06:00
Kinsey Moore
a27ba3f20f bsps/aarch64: Add support for EL2 start
Add the stub necessary to boot on AArch64 under EL2 and drop to EL1 for
normal operation.
2021-03-05 08:43:15 -06:00
Kinsey Moore
9951cee08f bsps/aarch64: RTEMS_DEBUG stack alignment faults
Run with stack alignment faults enabled under RTEMS_DEBUG to catch any
stack misalignments early. This makes it easier to track them down
should they ever occur.
2021-03-05 08:43:15 -06:00
Kinsey Moore
9d77c0f425 spec: Move hypervisor start for use by AArch64
AArch64 on hardware is often started at EL2 instead of EL1 from either
u-boot or a first stage bootloader. This allows RTEMS to drop from EL2
execution to EL1 to operate as normal.
2021-03-05 08:43:15 -06:00
Alex White
0729781234 spec/aarch64: Remove sp37 from intermittent tests 2021-03-05 08:43:15 -06:00
Alex White
9aff7e5685 score/aarch64: Fix interrupt level reads 2021-03-05 08:43:15 -06:00
Kinsey Moore
bbc9974a24 cpukit: Explicitly enforce alignment requirements
According to commentary on GCC bug
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99143, the alignment
behavior of linker sections on which RTEMS has relied was never
guaranteed to be consistent across platforms and any alignment
requirements for linker sections needs to be enforced explicitly.
This adds those explicit alignment requirements.

Closes #4255.
2021-03-05 08:43:15 -06:00
Kinsey Moore
2ee12f023d bsps: Allow override of ARM TM27 IRQs
ZynqMP hardware appears to have an odd hard-wired SGI implementation in
which the SGIs are permanently set as enabled or disabled. Allow the
TM27 IRQs to be overridden as necessary.
2021-03-05 08:43:15 -06:00
Kinsey Moore
6bfbfb5a3d bsps/aarch64: Resolve usage of SUBALIGN()
Remove usage of SUBALIGN() in aarch64 linkcmds which works around a
difference in behavior on AArch64 platforms. This is no longer necessary
since alignment is now enforced explicitly.

Closes #4178.
2021-03-05 08:43:15 -06:00
Sebastian Huber
61d688bfcf aarch64: Fix context switch
The Per_CPU_Control::isr_dispatch_disable is a 32-bit integer.

Close #4206.
2021-03-05 15:06:18 +01:00
Sebastian Huber
524839568d score: Ensure stack alignment requirement
Make sure that a user-provided stack size is the minimum size allocated
for the stack.

Make sure we meet the stack alignment requirement also for CPU ports
with CPU_STACK_ALIGNMENT > CPU_HEAP_ALIGNMENT.
2021-03-05 06:58:33 +01:00
Sebastian Huber
1de00d685d CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE
Ensure that CONFIGURE_MAXIMUM_THREAD_LOCAL_STORAGE_SIZE meets the task
storage alignment requirement.
2021-03-05 06:58:33 +01:00
Sebastian Huber
8fe59be236 validation: Fix for 64-bit targets
Closes #4179.
2021-03-04 09:08:03 +01:00
Sebastian Huber
30f6fd5b3f rtems: Fix RTEMS_TASK_STORAGE_ALIGNMENT
Make sure we meet the stack alignment requirement for user-provided
thread storage areas.
2021-03-04 09:08:03 +01:00
Sebastian Huber
4a765b47a5 score: Enforce CPU_STACK_ALIGNMENT requirements
Clarify CPU_STACK_ALIGNMENT requirements in no_cpu port.  Add static
assertion to enforce CPU_STACK_ALIGNMENT requirements.
2021-03-04 09:08:03 +01:00
Jan Sommer
a510e24335 MAINTAINERS: Add myself to write after approval 2021-03-04 08:41:23 +01:00
Sebastian Huber
83b1b25d4c rtems: Simplify rtems_signal_catch()
In uniprocessor configurations, we can simplify rtems_signal_catch().
Add a validation test for the SMP special case.
2021-03-02 21:46:52 +01:00
Sebastian Huber
9a13f3796a rtems: Simplify _Signal_Action_handler()
Use the invariant that an ASR is only processed if ASR processing is
enabled.
2021-03-02 21:46:52 +01:00
James Fitzsimons
320cb42b18 bsps/beagle: Updating licences to latest BSD 2 clause 2021-03-02 19:48:48 +01:00
James Fitzsimons
db86c3eb4f bsps/beagle: Adding QEP driver support to BeagleBoneBlack BSP 2021-03-02 19:48:48 +01:00
Sebastian Huber
c0c4b8b8b5 validation: Format comment blocks 2021-03-02 07:56:15 +01:00
Sebastian Huber
441824ac7a score: Simplify _Objects_Name_to_id_u32()
Remove superfluous check for the objects maximum since the maximum is
also used as a loop limit.

Fix formatting.
2021-03-01 10:12:26 +01:00
Sebastian Huber
2ad03ded38 validation: Add comments to task tests 2021-03-01 10:12:26 +01:00
Sebastian Huber
81fcf16ae6 validation: Add comments to message queue tests
Split up post-condition.
2021-03-01 10:12:26 +01:00
Sebastian Huber
54c96305a8 validation: Add comments to signal tests 2021-03-01 10:12:26 +01:00
Sebastian Huber
34f279aa19 validation: Add comments to barrier tests
Unify code sections across tests.
2021-03-01 10:12:10 +01:00
Sebastian Huber
08cbd4ba20 score: Fix _Stack_Extend_size()
Check for an integer overflow.  Add a validation test for task create
errors.
2021-03-01 07:18:14 +01:00
Sebastian Huber
9dad735697 validation: Improve task construct error tests 2021-03-01 07:18:14 +01:00
Chris Johns
96918affc3 powerpc/motorola_power: Place any common data in the .bss section
- It seems the compiler how defaults to -fcommon and this means
  some uninitialised data is ignored.

Closes #4266
2021-02-28 13:17:05 +11:00
Chris Johns
75fb7a0ee5 powerpc/motorola_power: Link all text sections into the executable image
- The change to building all code with code and data sections means
  we have a section per function. Make sure all functions are
  placed in the text section.

Closes #4266
2021-02-28 13:16:53 +11:00
Vijay Kumar Banerjee
f0f8c111c5 getgrent.c, record-client.c: Add missing includes for assert.h 2021-02-27 08:51:53 -07:00
Ryan Long
e200265936 rtems-debugger-threads.c: Fix Unchecked return value error (CID #1468688)
CID 1468688: Unchecked return value in snapshot_thread().

Closes #4262
2021-02-26 16:56:07 -06:00
Ryan Long
e5e58da6df getgrent.c: Fix Unchecked return value error (CID #1459004)
CID 1459004: Unchecked return value in endgrent().

Closes #4261
2021-02-26 16:56:07 -06:00
Ryan Long
be3b87d471 record-client.c: Fix Unchecked return value (CID #1456677)
CID 1456677: Unchecked return value in resolve_hold_back().

Closes #4260
2021-02-26 16:56:07 -06:00
Ryan Long
1b322a6b83 printertask.c: Fix Unchecked return value (CID #1399710)
CID 1399710: Unchecked return value in printer_task().
CID 1472764: Unchecked return value in rtems_print_printer_task().

Closes #4258
2021-02-26 16:56:07 -06:00
Sebastian Huber
2428a8caf2 build: Install <rtems/score/hash.h>
Update #4267.
2021-02-26 09:57:05 +01:00
Sebastian Huber
de7df0419d bsps: Fix legacy build 2021-02-26 09:48:41 +01:00
Sebastian Huber
1ac4a85ebf score: Fix thread initialization
Close the thread object if a thread create extension fails.  Also call
the delete extension to avoid resource leaks in early extensions if a
late extension fails.

Close #4270.
2021-02-26 09:23:02 +01:00
Sebastian Huber
c96644e873 libtest: Print SHA256 hash in base64url 2021-02-26 09:10:09 +01:00
Sebastian Huber
74eff26c1d libtest: Report target hash
Update #4267.
2021-02-26 09:10:09 +01:00