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

Fix #1273, remove PspConfig global object #1274

Merged
merged 1 commit into from
Apr 2, 2021

Conversation

jphickey
Copy link
Contributor

Describe the contribution
The PspConfig member is removed from the GLOBAL_CONFIGDATA object.

Updates the only remaining ref to this object inside the CFE_PSP_VERSION macro to use the API function instead.

This also updates the OSAL and CFE version print to not depend on the global object too - OSAL becomes an API call and CFE can just use the macro directly because its the same library (itself) so no linking concern/issue.

Fixes #1273

Testing performed
Build and sanity check CFE, run all unit tests

Expected behavior changes
None

System(s) tested on
Ubuntu 20.04

Additional context
Co-Dependent with nasa/PSP#280

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

@skliper skliper added this to the 7.0.0 milestone Mar 31, 2021
@jphickey
Copy link
Contributor Author

Updated for whitespace/format ....

@jphickey jphickey added the CCB:Ready Ready for discussion at the Configuration Control Board (CCB) label Mar 31, 2021
@astrogeco
Copy link
Contributor

CCB:2021-03-31 APPROVED

  • might depend on other PRs
  • do we want to use a version API for cFE?

@skliper
Copy link
Contributor

skliper commented Apr 2, 2021

@astrogeco @jphickey - can we get this in today? Should be included for code review.

The `PspConfig` member is removed from the `GLOBAL_CONFIGDATA` object.

Updates the only remaining ref to this object inside the CFE_PSP_VERSION
macro to use the API function instead.

This also updates the OSAL and CFE version print to _not_ depend on the
global object too - OSAL becomes an API call and CFE can just use the
macro directly because its the same library (itself) so no linking
concern/issue.
@jphickey
Copy link
Contributor Author

jphickey commented Apr 2, 2021

Rebased to resolve conflicts, should merge cleanly now.

@jphickey jphickey removed the conflicts label Apr 2, 2021
@astrogeco astrogeco changed the base branch from main to integration-candidate April 2, 2021 13:59
@astrogeco astrogeco added IC:2021-04-06 and removed CCB:Ready Ready for discussion at the Configuration Control Board (CCB) labels Apr 2, 2021
@astrogeco astrogeco merged commit 0d6ceb7 into nasa:integration-candidate Apr 2, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Apr 2, 2021
nasa/cFE#1274 - Fix #1273, remove PspConfig global object

nasa/cFE#1278 - Fix #1277, ZeroCopy typo in ReadMe
astrogeco added a commit to nasa/cFS that referenced this pull request Apr 2, 2021
nasa/cFE#1274 - Fix #1273, remove PspConfig global object
nasa/cFE#1278 - Fix #1277, ZeroCopy typo in ReadMe

nasa/PSP#287 - Fix #280, remove psp configdata global object
astrogeco added a commit to nasa/cFS that referenced this pull request Apr 2, 2021
nasa/cFE#1274 - Fix #1273, remove PspConfig global object
nasa/cFE#1278 - Fix #1277, ZeroCopy typo in ReadMe

nasa/PSP#287 - Fix #280, remove psp configdata global object
astrogeco added a commit to nasa/cFS that referenced this pull request Apr 2, 2021
nasa/cFE#1274 - Fix #1273, remove PspConfig global object
nasa/cFE#1278 - Fix #1277, ZeroCopy typo in ReadMe

nasa/PSP#287 - Fix #280, remove psp configdata global object
astrogeco added a commit to nasa/cFS that referenced this pull request Apr 2, 2021
*Submodule ICs:*
nasa/cFE#1279, nasa/PSP#288

*Submodule IC Contents:*

nasa/cFE#1274 - Fix #1273, remove PspConfig global object
nasa/cFE#1278 - Fix #1277, ZeroCopy typo in ReadMe

nasa/PSP#287 - Fix #280, remove psp configdata global object
nasa/PSP#283 - Fix #281, cleanup memory range table
astrogeco added a commit to nasa/cFS that referenced this pull request Apr 2, 2021
*Submodule ICs:*
nasa/cFE#1279, nasa/PSP#288

*Contents:*

nasa/cFE#1274 - Fix #1273, remove PspConfig global object
nasa/cFE#1278 - Fix #1277, ZeroCopy typo in ReadMe

nasa/PSP#287 - Fix #280, remove psp configdata global object
nasa/PSP#283 - Fix #281, cleanup memory range table
astrogeco added a commit to nasa/cFS that referenced this pull request Apr 2, 2021
*Submodule ICs:*
nasa/cFE#1279, nasa/PSP#288

*Contents:*

nasa/cFE#1274 - Fix #1273, remove PspConfig global object
nasa/cFE#1278 - Fix #1277, ZeroCopy typo in ReadMe

nasa/PSP#287 - Fix #280, remove psp configdata global object
nasa/PSP#283 - Fix #281, cleanup memory range table
@jphickey jphickey deleted the fix-1273-pspconfig branch April 9, 2021 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove "PspConfig" member in config structure
3 participants