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

arch: save user context in assert common code #7955

Merged
merged 1 commit into from
Dec 24, 2022

Conversation

zyfeier
Copy link
Contributor

@zyfeier zyfeier commented Dec 22, 2022

Summary

This is the work continue with #7875. Fix the issue report here: #7875 (comment)

Impact

backtrace can unwind correctly again

Testing

Internal test

arch/avr/src/avr32/avr_saveusercontext.S Outdated Show resolved Hide resolved
arch/avr/src/avr32/avr_saveusercontext.S Outdated Show resolved Hide resolved
sched/misc/assert.c Outdated Show resolved Hide resolved
This is the work continue with apache#7875

Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
{
#ifdef CONFIG_DEBUG_INFO
FAR uint32_t *regs = dumpregs ? dumpregs : g_current_regs;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
FAR uint32_t *regs = dumpregs ? dumpregs : g_current_regs;
FAR volatile uint32_t *regs = dumpregs ? dumpregs : g_current_regs;

@zyfeier zyfeier deleted the assert2 branch December 29, 2022 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants