| 106 | } |
| 107 | |
| 108 | void SetError(pkg1::ErrorInfo info) { |
| 109 | const uintptr_t address = secmon::MemoryRegionVirtualDevicePmc.GetAddress() + PKG1_SECURE_MONITOR_PMC_ERROR_SCRATCH; |
| 110 | |
| 111 | if (reg::Read(address) == pkg1::ErrorInfo_None) { |
| 112 | reg::Write(address, info); |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | NORETURN void ErrorReboot() { |
| 117 | /* Perform any necessary (typically none) debugging. */ |
no test coverage detected