MCPcopy Create free account
hub / github.com/Atmosphere-NX/Atmosphere / SetError

Function SetError

exosphere/program/source/secmon_error.cpp:108–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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. */

Callers 9

ExceptionHandlerFunction · 0.85
AbortImplFunction · 0.85
GetEntryContextFunction · 0.85
ValidateResetExpectedFunction · 0.85
ActmonInterruptHandlerFunction · 0.85
CheckVerifyResultFunction · 0.85
SmcShowErrorFunction · 0.85
InvalidSmcErrorFunction · 0.85

Calls 3

ReadFunction · 0.50
WriteFunction · 0.50
GetAddressMethod · 0.45

Tested by

no test coverage detected