[KERNEL] - Replacing Unk

- Changes here are from Chrispy's Nukernel
This commit is contained in:
The-Little-Wolf
2025-07-16 08:01:54 -07:00
committed by Radosław Gliński
parent 31173107bc
commit 39621ddec8
8 changed files with 174 additions and 99 deletions

View File

@@ -57,8 +57,7 @@ typedef struct {
};
xe::be<uint32_t> signal_state;
xe::be<uint32_t> wait_list_flink;
xe::be<uint32_t> wait_list_blink;
X_LIST_ENTRY wait_list;
} X_DISPATCH_HEADER;
static_assert_size(X_DISPATCH_HEADER, 0x10);
@@ -245,8 +244,8 @@ class XObject {
// Stash native pointer into X_DISPATCH_HEADER
static void StashHandle(X_DISPATCH_HEADER* header, uint32_t handle) {
header->wait_list_flink = kXObjSignature;
header->wait_list_blink = handle;
header->wait_list.flink_ptr = kXObjSignature;
header->wait_list.blink_ptr = handle;
}
static uint32_t TimeoutTicksToMs(int64_t timeout_ticks);