From 723c09d7abef00526b1375aa37dcc8fb86111b1a Mon Sep 17 00:00:00 2001 From: SciresM Date: Wed, 16 Dec 2020 16:56:29 -0800 Subject: [PATCH] hbl: grant read access to ktrace buffer (#36) Also grant access to svcQueryIoMapping & hint it as available --- hbl.json | 10 ++++++++++ source/main.c | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/hbl.json b/hbl.json index 3a76aa4..fb1a0ea 100644 --- a/hbl.json +++ b/hbl.json @@ -119,6 +119,7 @@ "svcCreateSharedMemory": "0x50", "svcMapTransferMemory": "0x51", "svcUnmapTransferMemory": "0x52", + "svcQueryIoMapping": "0x55", "svcDebugActiveProcess": "0x60", "svcBreakDebugProcess": "0x61", "svcTerminateDebugProcess": "0x62", @@ -162,6 +163,15 @@ "allow_debug": true, "force_debug": true } + }, + { + "type": "map_region", + "value": [ + { + "region_type": 1, + "is_ro": true + } + ] } ] } diff --git a/source/main.c b/source/main.c index 346a492..a27ab80 100644 --- a/source/main.c +++ b/source/main.c @@ -452,7 +452,7 @@ void loadNro(void) { EntryType_Argv, 0, {0, 0} }, { EntryType_NextLoadPath, 0, {0, 0} }, { EntryType_LastLoadResult, 0, {0, 0} }, - { EntryType_SyscallAvailableHint, 0, {0xffffffffffffffff, 0x9fc9fff0007ffff} }, + { EntryType_SyscallAvailableHint, 0, {0xffffffffffffffff, 0x9fc9fff0027ffff} }, { EntryType_RandomSeed, 0, {0, 0} }, { EntryType_UserIdStorage, 0, {(u64)(uintptr_t)&g_userIdStorage, 0} }, { EntryType_HosVersion, 0, {0, 0} },