Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration candidate: 2020-06-17 #521

Merged
merged 15 commits into from
Jun 25, 2020
Merged

Integration candidate: 2020-06-17 #521

merged 15 commits into from
Jun 25, 2020

Conversation

astrogeco
Copy link
Contributor

@astrogeco astrogeco commented Jun 23, 2020

Describe the contribution
Fix #499
Fix #501
Fix #505
Fix #506
Fix #520
Fix #351

Testing performed
Bundle CI - https://github.com/nasa/cFS/pull/106/checks

Expected behavior changes
PR #500 - Command line options in Linux are recognized, no longer ignored/dropped.

PR #504 - No impact to current unit testing which runs UT assert as a standalone app. Add a position independent code (PIC) variant of the ut_assert library, which can be dynamically loaded into other applications rather than running as a standalone OSAL application. This enables loading
UT assert as a CFE library.

PR #507 - Unit tests pass on RTEMS.

PR #508 - Resolve inconsistency in how the stack size is treated across different OS implemntations. With this change the user-requested size is passed through to the underlying OS without an enforced minimum. An additional sanity check is added at the shared layer to ensure that the stack size is never passed as 0.

PR #524 - Update Licenses for Apache 2.0

System(s) tested on
Ubuntu:Bionic

Additional context
Part of nasa/cFS#106

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.
Jacob Hageman, NASA-GSFC

jphickey and others added 6 commits June 12, 2020 13:59
Keep the entire argc/argv from the shell.  Do not prune the command
name as getopt expects this to be there.
Add a position independent code (PIC) variant of the ut_assert library,
which can be dynamically loaded into other applications rather than running
as a standalone OSAL application.  This enables loading UT assert as a
CFE library.

This required moving some symbols/functions around.  Mainly, the PIC
library does _not_ contain the "utbsp.c" file which has the bindings
to the OSAL BSP when running as a standalone app, but everything else
should be the same.
Resolve inconsistency in how the stack size is treated across
different OS implemntations.  POSIX would enforce a minimum,
where RTEMS would not.

With this change the user requested size is passed through
to the underlying OS exactly as is, no enforced minimum.

An additional sanity check is added at the shared layer to
ensure that the stack size is never passed as 0.
Add requisite cast to printf.
Also use sizeof() rather than hardcoded size of 12.
The pthread API defines the timeout parameter for
the pthread_mutex_timedlock call as an absolute value
based on CLOCK_REALTIME.

This introduces a wrapper function to calculate the absolute
timeout for this.
Fix #499, store all arguments in generic-linux BSP
@astrogeco astrogeco marked this pull request as draft June 23, 2020 12:44
@astrogeco astrogeco marked this pull request as ready for review June 25, 2020 02:53
@astrogeco astrogeco merged commit 33471c7 into master Jun 25, 2020
@skliper skliper added this to the 5.1.0 milestone Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment