From da00e5298cf43204aa486328a542cb015596c903 Mon Sep 17 00:00:00 2001 From: jakcron Date: Sat, 27 Oct 2018 15:46:44 +0800 Subject: [PATCH] [hac] Fix bug where stubbed kernel cap u32s were not processed correctly --- lib/libhac/include/nn/hac/KernelCapabilityEntry.h | 1 + lib/libhac/include/nn/hac/define/kc.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/libhac/include/nn/hac/KernelCapabilityEntry.h b/lib/libhac/include/nn/hac/KernelCapabilityEntry.h index 1a5f3cc..7b39302 100644 --- a/lib/libhac/include/nn/hac/KernelCapabilityEntry.h +++ b/lib/libhac/include/nn/hac/KernelCapabilityEntry.h @@ -45,6 +45,7 @@ namespace hac break; } } + if (id == kc::KC_INVALID && cap == (uint32_t)0xffffffff) return id; } }; diff --git a/lib/libhac/include/nn/hac/define/kc.h b/lib/libhac/include/nn/hac/define/kc.h index 1bf2d73..4716a9f 100644 --- a/lib/libhac/include/nn/hac/define/kc.h +++ b/lib/libhac/include/nn/hac/define/kc.h @@ -20,7 +20,8 @@ namespace hac KC_MISC_PARAMS = 13, KC_KERNEL_VERSION = 14, KC_HANDLE_TABLE_SIZE = 15, - KC_MISC_FLAGS = 16 + KC_MISC_FLAGS = 16, + KC_STUB = 32 }; } }