Skip to content

Commit

Permalink
🐛 Fixed release build throw
Browse files Browse the repository at this point in the history
This is still a flawed and broken system. We need to fix this to make
this runtime actually viable!
  • Loading branch information
kammce committed Aug 29, 2024
1 parent 329a458 commit 4b55ec1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/arm_cortex/estell/exception.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include <algorithm>
#include <bit>
#include <compare>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
Expand Down Expand Up @@ -2054,8 +2053,10 @@ extern "C"
#elif OPTIMIZATION_LEVEL == Release
std::uint32_t const* stack_pointer = *exception_object.cpu.sp;
exception_object.cpu.r3 = stack_pointer[0];
exception_object.cpu.pc = stack_pointer[1];
exception_object.cpu.sp = stack_pointer + 2;
exception_object.cpu.r4 = stack_pointer[1];
exception_object.cpu.r5 = stack_pointer[2];
exception_object.cpu.pc = stack_pointer[3];
exception_object.cpu.sp = stack_pointer + 4;
#elif OPTIMIZATION_LEVEL == RelWithDebInfo
#error "Sorry Release mode unwinding is not supported yet.";
#endif
Expand Down

0 comments on commit 4b55ec1

Please sign in to comment.