allow hoc-clk to panic
This commit is contained in:
1 parent
63601e35fa
commit
39c612779b
3 files changed
+4
-3
No files matched your search
@@ -254,8 +254,8 @@ namespace board {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define MMIO32(addr) (*reinterpret_cast<volatile u32 *>(addr))
|
#define MMIO32(addr) (*reinterpret_cast<volatile u32 *>(addr))
|
||||||
NX_NORETURN void panic(u32 r, u32 g, u32 b) {
|
NX_NORETURN void panic(u32 c) {
|
||||||
SmcReadWriteRegister(0x7000EC40 /* PMC_BASE + APBDEV_PMC_SCRATCH200 */, ~0, ((r & 0xF) << 8) | ((g & 0xF) << 4) | ((b & 0xF) << 0));
|
SmcReadWriteRegister(0x7000EC40 /* PMC_BASE + APBDEV_PMC_SCRATCH200 */, ~0, c);
|
||||||
|
|
||||||
/* Write timer magic */
|
/* Write timer magic */
|
||||||
MMIO32(tmrVirtAddr + 0x18C) = 0xC45A;
|
MMIO32(tmrVirtAddr + 0x18C) = 0xC45A;
|
||||||
|
|||||||
@@ -61,6 +61,6 @@ namespace board {
|
|||||||
bool IsDram8GB();
|
bool IsDram8GB();
|
||||||
void SetDisplayRefreshDockedState(bool docked);
|
void SetDisplayRefreshDockedState(bool docked);
|
||||||
FuseData *GetFuseData();
|
FuseData *GetFuseData();
|
||||||
NX_NORETURN void panic(u32 r, u32 g, u32 b);
|
NX_NORETURN void panic(u32 c);
|
||||||
|
|
||||||
} // namespace board
|
} // namespace board
|
||||||
@@ -146,6 +146,7 @@ namespace bpmp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fileUtils::LogLine("[bpmp] RequestBpmpExitAndWait: BPMP timeout (cannot sleep)");
|
fileUtils::LogLine("[bpmp] RequestBpmpExitAndWait: BPMP timeout (cannot sleep)");
|
||||||
|
board::panic(board::CpuPanic);
|
||||||
}
|
}
|
||||||
|
|
||||||
void EnableBpmpSmmu() {
|
void EnableBpmpSmmu() {
|
||||||
|
|||||||
Reference in new issue
Block a user