-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix storage rtos types - remove including internal header file #7364
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
Conversation
os_thread_t and family are internal and should not be used (thus we included internal header file). Instead, use those that are exposed via rtx_os.h file.
Fixed few errors (I noticed those internal types are used across the code base). This PR should clean it all |
@@ -40,17 +40,17 @@ extern "C" { | |||
implementation specific, header file, therefore limiting scope of possible changes. | |||
*/ | |||
|
|||
#include "rtx_lib.h" | |||
#include "rtx_os.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I like it.
@TacoGrandeTX FYI |
20b738e
to
4d8baa7
Compare
One more fix incoming, another internal symbol not exposed (jenkins failure). This is a good exercise ! Update: more than one. More internal symbols in our codebase. Fixing it all in once! 🔥 🚒 |
rtos/TARGET_CORTEX/mbed_boot.c
Outdated
@@ -430,6 +430,18 @@ void __rt_entry (void) { | |||
*/ | |||
#if defined(RTX_NO_MULTITHREAD_CLIB) | |||
|
|||
// These 2 macros are taken from RTX Config (internal header) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That should probably go into our config file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can move it there with default values set. Based on our config, there would be just one
#define OS_THREAD_LIBSPACE_NUM 4
, will check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest rebase fixed it, moved to conf with default value as it was (4)
4d9d292
to
fec82aa
Compare
RTX Config header file is internal and not exposed. With latest fixes to use only public header files from RTX, we need to add these 2 new macros for RTX ARMC lib configuration.
As we do not include rtx_lib header file anymore, these symbols are not available. Use core util for if ISR is active. And for OS tick, pull in os_tick header file.
os_tick header file is C only, mangling would cause problems here
fec82aa
to
dd33247
Compare
You are on a roll! 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
/morph build |
Build : FAILUREBuild number : 2522 |
uvisor example failed - @alzix shall I update the example to fix the error or? Error:
|
Fix for uvisor example proposed ARMmbed/mbed-os-example-uvisor-thread#104 Update: PR merged |
/morph build |
Build : SUCCESSBuild number : 2528 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2176 |
Test : SUCCESSBuild number : 2290 |
Waiting for final reviews for this bugfix. I labeled is as 5.10 due as apps could use these internal types we exposed. By 5.10, the types should be updated to the one we are providing as storage types for rtos. |
+1 on targeting 5.10 due to the changes. LGTM. |
Description
Remove internal types from our storage rtos header file. And do some refactor (some files still use internal types). Plus some other fixes as I removed one internal rtx from our include, I discovered 2 files not including needed header files!
As result, this also fix some warnings about redefinition STRINGIFY for some platforms (nordic at least).
@JonatanAntoni who I discussed the issue with
Pull request type