Skip to content

os/arch/arm/src, os/include/tinyara/reboot_reason.h: Add specific reboot reasons and improve error tracking#7196

Open
abhinav-s235 wants to merge 1 commit intoSamsung:masterfrom
abhinav-s235:fix_reboot_reason
Open

os/arch/arm/src, os/include/tinyara/reboot_reason.h: Add specific reboot reasons and improve error tracking#7196
abhinav-s235 wants to merge 1 commit intoSamsung:masterfrom
abhinav-s235:fix_reboot_reason

Conversation

@abhinav-s235
Copy link
Copy Markdown
Contributor

This commit improves the reboot reason system in TizenRT by adding specific reboot reasons at system failure points where they were previously missing. This enhancement provides better error tracking and debugging capabilities.
New reboot reasons added (61-65):

  • REBOOT_SYSTEM_INTERRUPT_FAILURE (61) - Interrupt handling failures
  • REBOOT_SYSTEM_SCHEDULER_FAILURE (62) - Scheduler/reprioritization failures
  • REBOOT_SYSTEM_TASK_START_FAILURE (63) - Task start failures
  • REBOOT_SYSTEM_PTHREAD_START_FAILURE (64) - Pthread start failures
  • REBOOT_SYSTEM_STACK_OVERFLOW (65) - Stack overflow detected

Copy link
Copy Markdown
Contributor

@amandeep-samsung amandeep-samsung left a comment

Choose a reason for hiding this comment

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

addition of reboot reasons in code having PANIC to help in debugging for reason of system reboot.

REBOOT_SYSTEM_PERIODIC_REBOOT = 59, /* Periodic reboot */
REBOOT_SYSTEM_ASSERT = 60, /* Reboot from ASSERT or PANIC */
REBOOT_SYSTEM_INTERRUPT_FAILURE = 61, /* Interrupt handling failure */
REBOOT_SYSTEM_SCHEDULER_FAILURE = 62, /* Scheduler/reprioritization failure */
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could you add REBOOT_SYSTEM_SCHEDULER_FAILURE, REBOOT_SYSTEM_INTERRUPT_FAILURE into armv7-m and armv7-r also.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Added

…oot reasons and improve error tracking across architectures

This commit improves the reboot reason system in TizenRT by adding specific reboot reasons at system failure points where they
were previously missing. This enhancement provides better error tracking and debugging capabilities.
New reboot reasons added (61-65):
- REBOOT_SYSTEM_INTERRUPT_FAILURE (61) - Interrupt handling failures
- REBOOT_SYSTEM_SCHEDULER_FAILURE (62) - Scheduler/reprioritization failures
- REBOOT_SYSTEM_TASK_START_FAILURE (63) - Task start failures
- REBOOT_SYSTEM_PTHREAD_START_FAILURE (64) - Pthread start failures
- REBOOT_SYSTEM_STACK_OVERFLOW (65) - Stack overflow detected
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