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

dump_callstack() mixes up callstack for different cpus #20

Open
rakslice opened this issue Jul 15, 2024 · 0 comments
Open

dump_callstack() mixes up callstack for different cpus #20

rakslice opened this issue Jul 15, 2024 · 0 comments

Comments

@rakslice
Copy link
Contributor

Since the callstack is fed from the static prev_pc, and there's only a single one for both cpus, if it happens that the previous mk_trace_cb() call was for the other cpu, then the wrong previous PC gets put into the callstack.

static unsigned int prev_pc=0;

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

No branches or pull requests

1 participant