add temporary logging
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions

This commit is contained in:
Daniel R. 2024-12-26 19:31:34 +01:00
parent 6f8b6f50db
commit 615e8e18f6
No known key found for this signature in database
GPG key ID: B8ADC8F57BA18DBA
2 changed files with 46 additions and 1 deletions

View file

@ -73,10 +73,55 @@ void Linker::Execute() {
const auto* proc_param = GetProcParam();
ASSERT(proc_param);
/* TEMP */
LOG_INFO(Core_Linker, "---- proc_param ----");
LOG_INFO(Core_Linker, "proc_param->size = 0x{:x}", proc_param->size);
LOG_INFO(Core_Linker, "proc_param->magic = 0x{:x}", proc_param->magic);
LOG_INFO(Core_Linker, "proc_param->sdk_version = 0x{:x}", proc_param->sdk_version);
LOG_INFO(Core_Linker, "proc_param->mem_param = {}", fmt::ptr(proc_param->mem_param));
LOG_INFO(Core_Linker, "proc_param->unknown1 = 0x{:x}", proc_param->unknown1);
/* TEMP */
Core::OrbisKernelMemParam mem_param{};
if (proc_param->size >= offsetof(OrbisProcParam, mem_param) + sizeof(OrbisKernelMemParam*)) {
if (proc_param->mem_param) {
mem_param = *proc_param->mem_param;
/* TEMP */
LOG_INFO(Core_Linker, "---- mem_param ----");
LOG_INFO(Core_Linker, "mem_param->size = 0x{:x}", mem_param.size);
LOG_INFO(Core_Linker, "mem_param->extended_page_table = {}",
fmt::ptr(mem_param.extended_page_table));
LOG_INFO(Core_Linker, "mem_param->flexible_memory_size = {}",
fmt::ptr(mem_param.flexible_memory_size));
LOG_INFO(Core_Linker, "mem_param->extended_memory_1 = {}",
fmt::ptr(mem_param.extended_memory_1));
LOG_INFO(Core_Linker, "mem_param->extended_gpu_page_table = {}",
fmt::ptr(mem_param.extended_gpu_page_table));
LOG_INFO(Core_Linker, "mem_param->extended_memory_2 = {}",
fmt::ptr(mem_param.extended_memory_2));
LOG_INFO(Core_Linker, "mem_param->extended_cpu_page_table = {}",
fmt::ptr(mem_param.extended_cpu_page_table));
LOG_INFO(Core_Linker, "-------------------");
if (mem_param.size >=
offsetof(OrbisKernelMemParam, flexible_memory_size) + sizeof(u64*) &&
mem_param.flexible_memory_size) {
LOG_INFO(Core_Linker, "mem_param->flexible_memory_size = 0x{:x}",
*mem_param.flexible_memory_size);
}
if (mem_param.size >= offsetof(OrbisKernelMemParam, extended_memory_1) + sizeof(u64*) &&
mem_param.extended_memory_1) {
LOG_INFO(Core_Linker, "mem_param->extended_memory_1 = 0x{:x}",
*mem_param.extended_memory_1);
}
if (mem_param.size >= offsetof(OrbisKernelMemParam, extended_memory_2) + sizeof(u64*) &&
mem_param.extended_memory_2) {
LOG_INFO(Core_Linker, "mem_param->extended_memory_2 = 0x{:x}",
*mem_param.extended_memory_2);
}
LOG_INFO(Core_Linker, "-------------------");
/* TEMP */
if (mem_param.size >=
offsetof(OrbisKernelMemParam, flexible_memory_size) + sizeof(u64*)) {
if (const auto* flexible_size = mem_param.flexible_memory_size) {

View file

@ -22,7 +22,7 @@ struct OrbisKernelMemParam {
u8* extended_memory_1;
u64* extended_gpu_page_table;
u8* extended_memory_2;
u64* exnteded_cpu_page_table;
u64* extended_cpu_page_table;
};
static_assert(sizeof(OrbisKernelMemParam) == 0x38);