Skip to content

Commit

Permalink
Update ChRt.cpp
Browse files Browse the repository at this point in the history
Add Teensy 4 MPU stack overflow region.
  • Loading branch information
greiman committed Aug 24, 2020
1 parent a24c7fe commit 2efc171
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ChRt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ uint8_t* heapEnd() {
uint8_t* stackBase() {
#if defined(__IMXRT1062__)
extern uint8_t _ebss;
return &_ebss;
// Allow MPU 32 byte stack overflow detection region.
return &_ebss + 32;
#else // defined(__IMXRT1062__)
return heapEnd();
return heapEnd();
#endif // defined(__IMXRT1062__)
}
//------------------------------------------------------------------------------
Expand Down

0 comments on commit 2efc171

Please sign in to comment.