-
Notifications
You must be signed in to change notification settings - Fork 219
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
OSAL headers define a shared memory API that is not actually implemented anywhere #18
Comments
I'd assume these are here to define the API, similar to the memory/port/EEPROM prototypes that don't really do the unique work expected for custom hardware. Likely still useful if this is specifying what the prototypes would need to be, and the framework supported OSALs could define the functions as not implemented. Maybe @acudmore or @jwilmot could provide more context, but I'd be inclined to leave them in if the intent is to define the API (knowing not all OSALs implement every API). |
I would argue that if this would fit better as a PSP module akin to the memory/port/EEPROM code. It can then be modularized and selectively included in the PSP for platforms that may utilize shared memory. However, it doesn't make much sense at this layer of OSAL, which is supposed to be for common, abstract services that all RTOS implementations should provide. Shared memory is a concept that only applies to targets with virtualized memory spaces. I would recommend for removal of the APIs from this file, and they can be re-introduced with the PSP when an use-case is identified. The use case is quite important, as this is the only way to determine whether the proposed API will be sufficient to cover it. |
I went back as far as OSAL 3.3, I have older archives on a backup disk that I wanted to look up. |
Sounds good, I'm in concurrence with removing these from the OSAL API and that it would be more appropriate at PSP level if it becomes a requirement. |
Note also no functional tests... (no issue as long as we get these removed). |
CCB 2020-03-25: No objections |
Fix #18, Deprecate shared memory APIs
Describe the bug
The
osapi-os-core.h
header defines several prototypes e.g.OS_ShMemCreate()
. However, these functions are not implemented anywhere, and are not used by CFE nor CFS apps.To Reproduce
N/A - this is unused code.
Expected behavior
The headers should not include these prototypes if they are not implemented and there is no plan or requirement to implement them.
Code snips
System observed on:
Ubuntu 18.04 (64-bit)
Reporter Info
Joseph Hickey, Vantage Systems, Inc.
The text was updated successfully, but these errors were encountered: