Sebastian Huber
b207b37898
posix: Remove superfluous check
...
The api pointer is never NULL.
Update #4244 .
2021-02-20 15:18:49 +01:00
Sebastian Huber
f6a97f5992
rtems: Simplify signal handling
...
Remove superfluous ASR_Information::signals_posted. Move code out of
trivial inline functions.
Update #4244 .
2021-02-20 15:18:49 +01:00
Sebastian Huber
74ca8b7517
rtems: Move _Signal_Action_handler()
...
Move _Signal_Action_handler() and signal MP initialization to
rtems_signal_send(). The goal is to make _Signal_Action_handler() a
static function in a follow up patch.
Update #4244 .
2021-02-20 15:18:49 +01:00
Sebastian Huber
a52e5d9c7e
rtems: Remove unused ASR_Information::nest_level
...
Update #4244 .
2021-02-20 15:18:49 +01:00
Sebastian Huber
9d5d73be63
rtems: Remove unused _Modes_Change()
...
Update #4244 .
2021-02-20 15:18:49 +01:00
Sebastian Huber
600360dadf
rtems: Remove unused _Modes_Mask_changed()
...
Update #4244 .
2021-02-20 15:18:49 +01:00
Sebastian Huber
f9a59164e8
score: Add _Thread_Append_post_switch_action()
...
Update #4244 .
2021-02-20 15:18:48 +01:00
Sebastian Huber
fea848bbbc
score: Change thread action locking
...
Require that the corresponding lock is acquired before the action
handler returns. This helps to avoid recursion in the signal
processing.
Update #4244 .
2021-02-20 15:18:48 +01:00
Sebastian Huber
3e7d658033
validation: Add signal manager tests
...
Update #4244 .
2021-02-20 15:18:48 +01:00
Sebastian Huber
f38c0de407
validation: Add Validation1 test suite
...
Update #4244 .
2021-02-20 15:18:48 +01:00
Ryan Long
fac1ff1820
grspw_pkt.c: Fix Dereference before null check (CID #1399846 )
...
CID 1399846: Dereference before null check in grspw_addr_ctrl().
Closes #4253
2021-02-19 14:05:50 -06:00
Ryan Long
1fd56a96fc
grtc.c: Fix Dereference before null check (CID #1399840 )
...
CID 1399840: Dereference before null check in grtc_ioctl().
Closes #4252
2021-02-19 14:05:49 -06:00
Ryan Long
4edcdf43c7
b1553rt.c: Fix Deference before null check (CID #1399830 )
...
CID 1399830: Dereference before null check in rt_control().
Closes #4251
2021-02-19 14:05:49 -06:00
Ryan Long
eff3d7c05f
b1553brm.c: Fix Dereference before null check (CID #1399829 )
...
CID 1399829: Dereference before null check in brm_control().
Closes #4250
2021-02-19 14:05:49 -06:00
Sebastian Huber
8b1b987201
rtems: Generate <rtems/rtems/signal.h>
...
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.
Update #3899 .
Update #3993 .
2021-02-19 07:07:04 +01:00
Sebastian Huber
be60372136
basedefs: Add RTEMS_ALIGNOF()
2021-02-19 07:07:04 +01:00
Ryan Long
fa25b73ac1
shell.c: Fix Dereference before null check (CID #1467420 )
...
CID 1467420: Dereference before null check in rtems_shell_line_editor().
Closes #4254
2021-02-18 13:34:33 -06:00
Sebastian Huber
407e351e11
rtems: Generate <rtems/rtems/sem.h>
...
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.
Update #3899 .
Update #3993 .
2021-02-17 18:57:24 +01:00
Sebastian Huber
276828053e
rtems: Generate <rtems/rtems/clock.h>
...
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.
Update #3899 .
Update #3993 .
2021-02-17 18:57:24 +01:00
Sebastian Huber
0c4c03532c
rtems: Generate <rtems/rtems/barrier.h>
...
Change license to BSD-2-Clause according to file histories and
documentation re-licensing agreement.
Update #3899 .
Update #3993 .
2021-02-17 18:57:24 +01:00
Sebastian Huber
97825daf9c
rtems: Clarify object services documentation
...
Unify the wording across similar directives of other managers.
Update #3993 .
2021-02-17 18:57:07 +01:00
Sebastian Huber
7a1828ac61
rtems: Clarify IO manager documentation
...
Unify the wording across similar directives of other managers.
Update #3993 .
2021-02-17 18:56:50 +01:00
Sebastian Huber
bf3b9f4536
rtems: Clarify partition manager documentation
...
Unify the wording across similar directives of other managers.
Update #3993 .
2021-02-17 18:56:22 +01:00
Sebastian Huber
f9dc44afc7
rtems: Clarify timer manager documentation
...
Unify the wording across similar directives of other managers. Add
"CONSTRAINTS" section.
Update #3993 .
2021-02-17 18:56:04 +01:00
Sebastian Huber
2730599ca1
rtems: Clarify event manager documentation
...
Unify the wording across similar directives of other managers. Add
"CONSTRAINTS" section.
Update #3993 .
2021-02-17 18:55:24 +01:00
Chris Johns
026eb3db7e
powerpc/motorola_powerpc: Add cache coherent memory to the allocator
...
Updates #4245
Updates #4243
2021-02-16 09:40:47 +11:00
Chris Johns
23aad642be
powerpc/motorola_powerpc: Enable bus PCI support in LibBSD
...
Updates #4245
2021-02-16 09:40:29 +11:00
Chris Johns
6e3c6e044e
powerpc/io: Make [out/in] le and be calls conditional
...
- These calls clash with the Linux IO header in LibBSD. Making these
conditional here means BSPs build and the imported Linux header is
untouched.
Updates #4245
2021-02-16 09:40:15 +11:00
Chris Johns
85df12728a
powerpc/shared: Fix warnings in i8259 PIC code.
2021-02-16 09:40:03 +11:00
Chris Johns
53abbbd08d
powerpc/shared: Fix warnings
2021-02-16 08:12:43 +11:00
Chris Johns
86f031d401
powerpc/motorola_powerpc: Fix tm27 warnings
2021-02-16 08:12:43 +11:00
Chris Johns
b5aef78b36
score: Fix warning in thread queue ops
2021-02-16 08:12:43 +11:00
Chris Johns
e1676c1a0d
Update motorola_power to irq-generic interrupt management
...
- Add support to the BSP to enable irq-generic management
- Update the powerpc shared irq code to support irq-generic. This
is an opt in option for existing powerpc bsps. This change
should be simpler now
- Fix a number of issues in ISA IRQ controller handling by porting
fixes from the i386 (PC) BSP
Closes #4238
Closes #4239
2021-02-13 13:26:07 +11:00
Ryan Long
f65d3384dd
rtems-debugger-threads.c: Fix three Dereference before null check errors
...
CID 1468681: Dereference before null check in rtems_debugger_thread_continue().
CID 1468690: Dereference before null check in rtems_debugger_thread_system_resume().
CID 1468694: Dereference before null check in rtems_debugger_thread_find_index().
Closes #4241 .
2021-02-12 17:13:19 -06:00
Ryan Long
3f4cdd8589
rtems-debugger-target.c: Fix Dereference before null check (CID #1468682 )
...
CID 1468682: swbreaks is assigned a value dereferenced from target before
it has been verified that target is not null.
Closes #4240 .
2021-02-12 17:13:16 -06:00
Ryan Long
14f5a0597a
consolesimpletask.c: Fix Two Unchecked Return Values (CID #1437625 and #1472765 )
...
CID 1437625: Unchecked return value from call to rtems_task_create().
CID 1472765: Unchecked return value from call to rtems_task_start().
Closes #4237 .
2021-02-12 17:13:13 -06:00
Ryan Long
cc273ec10f
Add macros to assert status and use it
...
These macros are to be used to check the status from calls that are flagged
by Coverity as 'Unchecked return value'.
Fix file assert.h
2021-02-12 17:13:10 -06:00
Chris Johns
426154f4fd
cputkit/rtems: Remove warning
2021-02-13 07:09:38 +11:00
Chris Johns
03dff2019f
libcsupport: Add sbrk greedy support to consume all sbrk memory
...
- Move the heap sbrk code into a separate routnine.
- Update heap and workspace greedy allocators to use the common
sbrk greedy support.
Closes #3982
2021-02-10 17:28:32 +11:00
Sebastian Huber
570992dc27
bsp/riscv: Re-license to BSD-2-Clause
...
Change license to BSD-2-Clause according to file history.
Update #3053 .
2021-02-09 08:18:58 +01:00
Sebastian Huber
286ff5868e
basedefs: Add stringification of argument lists
...
Change RTEMS_STRING() and RTEMS_XSTRING() to accept a variable number of
arguments which is stringified. This can be used for example to create
register lists for inline assembler statements.
2021-02-09 07:06:49 +01:00
G S Niteesh Babu
8b32f1d8c4
bsps/shared/ofw: Bug fixes
...
Fixed bugs in rtems_ofw_get_prop, rtems_ofw_get_prop_len
and removed hardcoded value.
2021-02-08 21:08:36 +01:00
G S Niteesh Babu
6da50db55b
bsps/shared/ofw: Make rtems_ofw_get_effective_phandle iterative
...
Refactored recursive rtems_ofw_get_effective_phandle into a
iterative function.
2021-02-08 21:08:36 +01:00
G S Niteesh Babu
066687c43a
bsps/shared/ofw: Use strlcpy instead of strncpy
...
Changed rtems_ofw_get_prop to use strlcpy instead of strncpy
to ensure the buffer is null terminated incase of overflow.
2021-02-08 21:08:36 +01:00
G S Niteesh Babu
c4985b7718
bsps/shared/ofw: Fix coverity reported defects
...
Fixed use after free and null pointer dereference defects
FIXES:
1) CID 1472601 (NULL_RETURNS)
2) CID 1472600 (USE_AFTER_FREE)
3) CID 1472599 (USE_AFTER_FREE)
4) CID 1472598 (USE_AFTER_FREE)
5) CID 1472596 (USE_AFTER_FREE)
The below two defects have to marked false positive
1) CID 1472597 (ARRAY_VS_SINGLETON)
2) CID 1472595 (ARRAY_VS_SINGLETON)
2021-02-08 21:08:36 +01:00
Sebastian Huber
fafc923044
validation: Tweak construct error tests
...
Unify the state names across tests and make sure the state names have a
similar length.
2021-02-08 08:44:14 +01:00
Sebastian Huber
e59efd8835
validation: Tests for barrier manager
2021-02-08 08:44:14 +01:00
Sebastian Huber
788fa865fb
libtest: Add T_get_thread_timer_state()
2021-02-08 08:44:14 +01:00
Sebastian Huber
c9ceff92c3
validation: Add tests for rtems_build_name()
2021-02-08 07:52:42 +01:00
Chris Johns
7ca3b283ba
libcsupport: Have greedy allocations use consume extended memory
...
- Call the heap extend handler until all memory has been
requested.
Closes #3982
2021-02-08 17:45:52 +11:00