mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-06 04:01:44 +00:00
exo2: tweak debug for better logging
This commit is contained in:
parent
1fb9407d5d
commit
b922dff414
1 changed files with 7 additions and 7 deletions
|
@ -233,8 +233,8 @@ namespace ams::secmon::smc {
|
||||||
|
|
||||||
constinit std::atomic<int> g_logged = 0;
|
constinit std::atomic<int> g_logged = 0;
|
||||||
|
|
||||||
constexpr int LogMin = 0x100;
|
constexpr int LogMin = 0x200;
|
||||||
constexpr int LogMax = 0x120;
|
constexpr int LogMax = 0x400;
|
||||||
|
|
||||||
constexpr size_t LogBufSize = 0x5000;
|
constexpr size_t LogBufSize = 0x5000;
|
||||||
|
|
||||||
|
@ -269,20 +269,20 @@ namespace ams::secmon::smc {
|
||||||
}
|
}
|
||||||
|
|
||||||
void HandleSmc(int type, SmcArguments &args) {
|
void HandleSmc(int type, SmcArguments &args) {
|
||||||
if (type == HandlerType_User) {
|
|
||||||
DebugLog(args);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Get the table. */
|
/* Get the table. */
|
||||||
const auto &table = GetHandlerTable(static_cast<HandlerType>(type), args.r[0]);
|
const auto &table = GetHandlerTable(static_cast<HandlerType>(type), args.r[0]);
|
||||||
|
|
||||||
|
if (std::addressof(table) == std::addressof(g_handler_tables[HandlerType_User])) {
|
||||||
|
DebugLog(args);
|
||||||
|
}
|
||||||
|
|
||||||
/* Get the handler info. */
|
/* Get the handler info. */
|
||||||
const auto &info = GetHandlerInfo(table, args.r[0]);
|
const auto &info = GetHandlerInfo(table, args.r[0]);
|
||||||
|
|
||||||
/* Set the invocation result. */
|
/* Set the invocation result. */
|
||||||
args.r[0] = static_cast<u64>(InvokeSmcHandler(info, args));
|
args.r[0] = static_cast<u64>(InvokeSmcHandler(info, args));
|
||||||
|
|
||||||
if (type == HandlerType_User) {
|
if (std::addressof(table) == std::addressof(g_handler_tables[HandlerType_User])) {
|
||||||
DebugLog(args);
|
DebugLog(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue