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

sim/posix/backtrace: process host backtrace with critical section #9291

Merged
merged 2 commits into from May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion arch/sim/src/sim/posix/sim_hostmisc.c
Expand Up @@ -94,7 +94,13 @@ int host_backtrace(void** array, int size)
#ifdef CONFIG_WINDOWS_CYGWIN
return 0;
#else
return backtrace(array, size);
uint64_t flags = up_irq_save();
int ret;

ret = backtrace(array, size);

up_irq_restore(flags);
return ret;
#endif
}

Expand Down
6 changes: 6 additions & 0 deletions tools/nxstyle.c
Expand Up @@ -535,6 +535,12 @@ static const char *g_white_content_list[] =
"idVendor",
"idProduct",

/* Ref:
* sim/posix/sim_hostmisc.c
*/

"_NSGetExecutablePath",

/* Ref:
* arch/arm/src/nrf52/sdc/nrf.h
* arch/arm/src/nrf53/sdc/nrf.h
Expand Down