Tweaks for MPSoC startup and shutdown code #796

Merged
meggert merged 12 commits from mpsoc-tweaks into main 2023-09-27 11:32:31 +02:00
14 changed files with 179 additions and 85 deletions
Showing only changes of commit 50809e35a9 - Show all commits

View File

@@ -22,6 +22,10 @@ will consitute of a breaking change warranting a new major release:
parameters better configurable. This should not affect the behaviour of the OBSW, but might parameters better configurable. This should not affect the behaviour of the OBSW, but might
make it more reliable and fix some corner cases. make it more reliable and fix some corner cases.
## Fixed
- Missing `nullptr` checks for PLOC Supervisor handler, which could lead to crashes.
# [v6.6.0] 2023-09-18 # [v6.6.0] 2023-09-18
## Changed ## Changed

View File

@@ -1533,7 +1533,13 @@ void PlocSupervisorHandler::disableAllReplies() {
/* Disable ack reply */ /* Disable ack reply */
iter = deviceReplyMap.find(ACK_REPORT); iter = deviceReplyMap.find(ACK_REPORT);
if (iter == deviceReplyMap.end()) {
return;
}
DeviceReplyInfo* info = &(iter->second); DeviceReplyInfo* info = &(iter->second);
if (info == nullptr) {
return;
}
info->delayCycles = 0; info->delayCycles = 0;
info->command = deviceCommandMap.end(); info->command = deviceCommandMap.end();