fusee: change meso loading to parse INI from Nintendo's kernel

This commit is contained in:
Michael Scire 2020-08-20 14:52:24 -07:00 committed by SciresM
parent 99b5458539
commit ff9b9fc5ff
5 changed files with 40 additions and 10 deletions

View file

@ -963,11 +963,6 @@ void package2_patch_kernel(void *_kernel, size_t *kernel_size, bool is_sd_kernel
}
if (kernel_info == NULL && is_sd_kernel) {
/* If the kernel is mesosphere, patch it. */
if (*(volatile uint32_t *)((uintptr_t)_kernel + 4) == 0x3053534D) {
*out_ini1 = (void *)((uintptr_t)_kernel + *(volatile uint32_t *)((uintptr_t)_kernel + 8));
*(volatile uint64_t *)((uintptr_t)_kernel + 8) = (uint64_t)*kernel_size;
}
return;
}