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

Remove/replace/deprecate questionable macros in SB #843

Closed
skliper opened this issue Aug 26, 2020 · 2 comments · Fixed by #1003
Closed

Remove/replace/deprecate questionable macros in SB #843

skliper opened this issue Aug 26, 2020 · 2 comments · Fixed by #1003
Milestone

Comments

@skliper
Copy link
Contributor

skliper commented Aug 26, 2020

Is your feature request related to a problem? Please describe.

/**
* \brief Set memory address within SB Message
*
* Macro that should be used to set memory addresses within software bus messages.
* For now this does a straight copy, but in a future revision this may translate the
* raw memory address into a "safe" integer value. This is particularly important if
* the message is to be sent off this CPU.
*/
#define CFE_SB_SET_MEMADDR(msgdst,src) msgdst = (cpuaddr)src
/**
* \brief Get memory address from SB Message
*
* Macro that should be used to get memory addresses from software bus messages.
* This is the inverse operation of CFE_SB_SET_MEMADDR.
*/
#define CFE_SB_GET_MEMADDR(msgsrc) (cpuaddr)msgsrc

Describe the solution you'd like
Consider replacing or removing (deprecating).

Describe alternatives you've considered
None

Additional context
Trying to write specific tickets related to #172

Requester Info
Jacob Hageman - NASA/GSFC

@skliper
Copy link
Contributor Author

skliper commented Sep 9, 2020

@jphickey do you have background on these? I only see CFE_SB_GET_MEMADDR used in CFE_ES_SendMemPoolStatsCmd, which I assume will go away once that's updated to use a reference. Should CFE_SB_SET_MEMADDR be an inline function... or what's the concept behind it? I'm not sure what a "safe" memory address is...

@skliper
Copy link
Contributor Author

skliper commented Jan 11, 2021

Fixed by #1003

@skliper skliper linked a pull request Jan 11, 2021 that will close this issue
@skliper skliper closed this as completed Jan 11, 2021
@skliper skliper added this to the 7.0.0 milestone Sep 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant