Skip to content

osal Integration candidate: Equuleus-rc1+dev6#1453

Merged
dzbaker merged 4 commits intomainfrom
integration-candidate
Feb 29, 2024
Merged

osal Integration candidate: Equuleus-rc1+dev6#1453
dzbaker merged 4 commits intomainfrom
integration-candidate

Conversation

@dzbaker
Copy link
Copy Markdown
Collaborator

@dzbaker dzbaker commented Feb 29, 2024

Checklist (Please check before submitting)

Describe the contribution

Testing performed
cFS Bundle Checks
osal Checks

Expected behavior changes
See PRs

System(s) tested on
Ubuntu 20.04

Additional context
Add any other context about the contribution here.

Third party code
If included, identify any third party code and provide text file of license

Contributor Info - All information REQUIRED for consideration of pull request
@jphickey

jphickey and others added 4 commits February 14, 2024 16:25
When the OS_TaskCreate() function is called with a non-NULL stack pointer,
the POSIX implementation now should use this pointer as intended.  Previously
it was always allocating a new stack buffer, ignoring the passed-in pointer.

NOTE: When using this feature, the caller must use caution to make sure the
buffer being passed in is large enough to use as a task stack.  Particularly
when running under a desktop Linux/Glibc environment, the infrastructure
puts a considerably large object on the stack.  For example, in the
osal-core-tests, the stack size was too small.
Fix #1449, POSIX implementation honors stack pointer
*-----------------------------------------------------------------*/
int32 OS_Posix_InternalTaskCreate_Impl(pthread_t *pthr, osal_priority_t priority, size_t stacksz,
PthreadFuncPtr_t entry, void *entry_arg)
int32 OS_Posix_InternalTaskCreate_Impl(pthread_t *pthr, osal_priority_t priority, osal_stackptr_t stackptr,

Check notice

Code scanning / CodeQL-coding-standard

Function too long

OS_Posix_InternalTaskCreate_Impl has too many lines (129, while 60 are allowed).
*-----------------------------------------------------------------*/
int32 OS_Posix_InternalTaskCreate_Impl(pthread_t *pthr, osal_priority_t priority, size_t stacksz,
PthreadFuncPtr_t entry, void *entry_arg)
int32 OS_Posix_InternalTaskCreate_Impl(pthread_t *pthr, osal_priority_t priority, osal_stackptr_t stackptr,

Check notice

Code scanning / CodeQL-coding-standard

Long function without assertion

All functions of more than 10 lines should have at least one assertion.
@dzbaker dzbaker merged commit 342d7e3 into main Feb 29, 2024
@dzbaker dzbaker added this to the v7.0.0 milestone Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants