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

Modify IRQ handler processing when unusing RTOS at Cortex-A #9167

Merged
merged 4 commits into from
Jan 4, 2019

Conversation

TomoYamanaka
Copy link
Contributor

@TomoYamanaka TomoYamanaka commented Dec 20, 2018

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

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

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.
@ciarmcom ciarmcom requested a review from a team December 20, 2018 08:00
@ciarmcom
Copy link
Member

@TomoYamanaka, thank you for your changes.
@ARMmbed/mbed-os-maintainers please review.

@TomoYamanaka
Copy link
Contributor Author

cc @toyowata

@0xc0170 0xc0170 requested a review from a team December 20, 2018 16:40
@0xc0170
Copy link
Contributor

0xc0170 commented Dec 20, 2018

@ARMmbed/mbed-os-core Please review some new cmsis files (cmsis/TARGET_CORTEX_A/TOOLCHAIN_IAR/cmain.S and similar)

@cmonr cmonr requested a review from toyowata December 20, 2018 18:11
Copy link
Member

@bulislaw bulislaw left a 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.

Copy link
Contributor

@toyowata toyowata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@deepikabhavnani
Copy link

@SenRamakri - Please review

Copy link
Contributor

@0xc0170 0xc0170 left a 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
Copy link
Contributor

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)

@TomoYamanaka
Copy link
Contributor Author

@0xc0170 I updated my commit. Make a sense?

@cmonr
Copy link
Contributor

cmonr commented Jan 4, 2019

@ARMmbed/mbed-os-core When y'all get a chance, this looks to be about ready (we can restart CI if issues are found).

@cmonr
Copy link
Contributor

cmonr commented Jan 4, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 4, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit d2e9136 into ARMmbed:master Jan 4, 2019
@TomoYamanaka TomoYamanaka deleted the hanlder_without_RTOS branch January 7, 2019 03:14
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.

8 participants