fix soctherm-BPMP
This commit is contained in:
1 parent
209ff7afd8
commit
ac41a498e1
3 files changed
+6
No files matched your search
Binary file not shown.
@@ -60,6 +60,7 @@ extern "C" void main() {
|
|||||||
MainLoop(info);
|
MainLoop(info);
|
||||||
|
|
||||||
printf("[hoc-bpmpfw]: PANIC\n");
|
printf("[hoc-bpmpfw]: PANIC\n");
|
||||||
|
|
||||||
/* Clear the magic so sysmodule knows of a panic */
|
/* Clear the magic so sysmodule knows of a panic */
|
||||||
info.magic = 0x0;
|
info.magic = 0x0;
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#include "../file/config.hpp"
|
#include "../file/config.hpp"
|
||||||
#include "../file/file_utils.hpp"
|
#include "../file/file_utils.hpp"
|
||||||
#include "../mapping/mem_map.hpp"
|
#include "../mapping/mem_map.hpp"
|
||||||
|
#include "../tsensor/soctherm.hpp"
|
||||||
#include "bpmp.hpp"
|
#include "bpmp.hpp"
|
||||||
|
|
||||||
#include "bpmpfw_bin.h"
|
#include "bpmpfw_bin.h"
|
||||||
@@ -121,6 +122,10 @@ namespace bpmp {
|
|||||||
if (R_SUCCEEDED(rc)) {
|
if (R_SUCCEEDED(rc)) {
|
||||||
if (state == PscPmState_Awake) {
|
if (state == PscPmState_Awake) {
|
||||||
svcSleepThread(500'000'000); // 500ms
|
svcSleepThread(500'000'000); // 500ms
|
||||||
|
|
||||||
|
/* I have no clue why this is needed as it wasn't needed before ¯\(ツ)/¯ */
|
||||||
|
tsensor::InitializeSoctherm();
|
||||||
|
|
||||||
Result wrc = StartBpmfwExecution();
|
Result wrc = StartBpmfwExecution();
|
||||||
if (R_FAILED(wrc)) {
|
if (R_FAILED(wrc)) {
|
||||||
fileUtils::LogLine("[bpmp] restart after wake failed: 0x%x", wrc);
|
fileUtils::LogLine("[bpmp] restart after wake failed: 0x%x", wrc);
|
||||||
|
|||||||
Reference in new issue
Block a user