more debug feature
This commit is contained in:
1 parent
539cd58464
commit
836e24c82e
12 files changed
+111
-23
No files matched your search
@@ -222,7 +222,7 @@ volatile CustomizeTable C = {
|
||||
/* Debugging options */
|
||||
|
||||
/* PCV Log Verbosity */
|
||||
/* -1: Nothing */
|
||||
/* 0xFF: Nothing */
|
||||
/* 0: Basic logging */
|
||||
/* 1: More advanced logging */
|
||||
/* 2: All logging excluding MMIO */
|
||||
|
||||
@@ -31,8 +31,6 @@
|
||||
#define HOC_UART_LOG 0
|
||||
#endif
|
||||
|
||||
#define HOC_PCV_NVLOG_PATCH 1
|
||||
|
||||
#include "customize.hpp"
|
||||
#include "oc_log.hpp"
|
||||
|
||||
|
||||
@@ -219,8 +219,10 @@ namespace ams::ldr::hoc::pcv::mariko {
|
||||
#if HOC_UART_LOG
|
||||
/* Force GetEffectiveVerbosityLevel to return a non-zero level so all NvLog runs. */
|
||||
Result ForceVerbosity(u32 *ptr) {
|
||||
PATCH_OFFSET(&ptr[0], AsmMakeMovzW(0, static_cast<u16>(C.pcvLogVerbosity))); /* movz w0,#level */
|
||||
PATCH_OFFSET(&ptr[1], RetIns); /* ret */
|
||||
if(C.pcvLogVerbosity != 0xff) {
|
||||
PATCH_OFFSET(&ptr[0], AsmMakeMovzW(0, static_cast<u16>(C.pcvLogVerbosity))); /* movz w0,#level */
|
||||
PATCH_OFFSET(&ptr[1], RetIns); /* ret */
|
||||
}
|
||||
R_SUCCEED();
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user