diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-12-15 20:43:38 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-12-15 20:43:38 +0300 |
commit | 304510eb4d453a6ce882c420b21ae9b55d018b50 (patch) | |
tree | 3b56e0442eb2bcb376fc9d9ec396ca931b4943de /src/Hardware/SoftwareReset.h | |
parent | 6bb82cf378ae3cada270c4d1933876e6544b3d66 (diff) |
Added extra software reset data, added CRC speed test
Diffstat (limited to 'src/Hardware/SoftwareReset.h')
-rw-r--r-- | src/Hardware/SoftwareReset.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Hardware/SoftwareReset.h b/src/Hardware/SoftwareReset.h index f0c93b64..6630694d 100644 --- a/src/Hardware/SoftwareReset.h +++ b/src/Hardware/SoftwareReset.h @@ -62,8 +62,10 @@ struct SoftwareResetData uint32_t bfar; // bus fault address register uint32_t sp; // stack pointer uint32_t when; // value of the RTC when the software reset occurred - uint32_t taskName; // first 4 bytes of the task name - uint32_t spare[2]; // unused at present + uint32_t taskName; // first 4 bytes of the task name, or 'none' + uint32_t stackOffset; // how many spare words of stack the running task has + uint32_t stackMarkerValid : 1, // true if the stack low marker wasn't overwritten + spare : 31; // unused at present // The stack length is set to 27 words because that is the most we can print in a single message using our 256-byte format buffer uint32_t stack[27]; // stack when the exception occurred, with the link register and program counter at the bottom |