-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Modify IRQ handler processing when unusing RTOS at Cortex-A #9167
Conversation
In case of unusing RTOS, IRQ handler executes "while(1)" and it causes a program freeze. Therefore, I revised this processing. Also I added the heap setting processing and set the align to 8 byte.
In case of unusing RTOS, IRQ handler executes "while(1)" and it causes a program freeze. Therefore, I revised this processing.
In case of unusing RTOS, there is no processing against IRQ handler and it causes a linker error. Therefore, I added this processing with WEAK attribute. Also I added cmain.S file at cmsis/TARGET_CORTEX_A folder.
@TomoYamanaka, thank you for your changes. |
cc @toyowata |
@ARMmbed/mbed-os-core Please review some new cmsis files (cmsis/TARGET_CORTEX_A/TOOLCHAIN_IAR/cmain.S and similar) |
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 didn't go in details of the platform code or the imported IAR file, but it makes sense.
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.
LGTM
@SenRamakri - Please review |
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.
One small change could be done here, rest LGTM
return r; | ||
} | ||
|
||
#if !defined(MBED_CONF_RTOS_PRESENT) || !MBED_CONF_RTOS_PRESENT |
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.
should just check for the value (!defined not needed)
@0xc0170 I updated my commit. Make a sense? |
@ARMmbed/mbed-os-core When y'all get a chance, this looks to be about ready (we can restart CI if issues are found). |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
I modified the IRQ handler processing when unusing RTOS feature(ex:
mbed-bootloader-extended
) at Cortex-A.In case of ARMCC and GCC:
"while (1)" processing is executed as a default, it causes a program freeze.
In case of IAR:
There is no corresponded processing, it causes a linker error.
Thus, I modified or added IRQ handler with WEAK attribute.
In addition,
in ARMCC, I added heap setting processing because there is no this setting processing, and set the align to 8 byte.
in IAR, I added cmain.S file at cmsis/TARGET_CORTEX_A folder for working constructor processing correctly.
Pull request type