Skip to content

Commit

Permalink
hal: Fix wrong DEBUG reset on exception logic
Browse files Browse the repository at this point in the history
DONE: RTOS-489
  • Loading branch information
agkaminski committed Jul 13, 2023
1 parent 93a1bf1 commit b3638d6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion hal/armv7a/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ static void exceptions_defaultHandler(unsigned int n, exc_context_t *ctx)
hal_exceptionsDumpContext(buff, ctx, n);
hal_consolePrint(ATTR_BOLD, buff);

#ifndef NDEBUG
#ifdef NDEBUG
hal_cpuReboot();
#endif

Expand Down
2 changes: 1 addition & 1 deletion hal/armv7m/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void exceptions_dispatch(unsigned int n, exc_context_t *ctx)
hal_exceptionsDumpContext(buff, ctx, n);
hal_consolePrint(ATTR_BOLD, buff);

#ifndef NDEBUG
#ifdef NDEBUG
hal_cpuReboot();
#endif

Expand Down
2 changes: 1 addition & 1 deletion hal/ia32/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ static void exceptions_defaultHandler(unsigned int n, exc_context_t *ctx)
hal_exceptionsDumpContext(buff, ctx, n);
hal_consolePrint(ATTR_BOLD, buff);

#ifndef NDEBUG
#ifdef NDEBUG
hal_cpuReboot();
#endif

Expand Down
2 changes: 1 addition & 1 deletion hal/riscv64/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static void exceptions_defaultHandler(unsigned int n, exc_context_t *ctx)
hal_exceptionsDumpContext(buff, ctx, n);
hal_consolePrint(ATTR_BOLD, buff);

#ifndef NDEBUG
#ifdef NDEBUG
hal_cpuReboot();
#endif

Expand Down
2 changes: 1 addition & 1 deletion hal/sparcv8leon3/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void exceptions_dispatch(unsigned int n, exc_context_t *ctx)
hal_exceptionsDumpContext(buff, ctx, n);
hal_consolePrint(ATTR_BOLD, buff);

#ifndef NDEBUG
#ifdef NDEBUG
hal_cpuReboot();
#endif

Expand Down

0 comments on commit b3638d6

Please sign in to comment.