mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-05 19:51:45 +00:00
Fusee: Separate kernel patching into its own file.
This commit is contained in:
parent
7a27322044
commit
1ba8a92030
3 changed files with 18 additions and 6 deletions
9
fusee/fusee-secondary/src/kernel_patches.c
Normal file
9
fusee/fusee-secondary/src/kernel_patches.c
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <string.h>
|
||||
#include "utils.h"
|
||||
#include "kernel_patches.c"
|
||||
|
||||
void package2_patch_kernel(void *kernel, size_t size) {
|
||||
(void)kernel;
|
||||
(void)size;
|
||||
/* TODO: What kind of patching do we want to try to do here? */
|
||||
}
|
8
fusee/fusee-secondary/src/kernel_patches.h
Normal file
8
fusee/fusee-secondary/src/kernel_patches.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef FUSEE_KERNEL_PATCHES_H
|
||||
#define FUSEE_KERNEL_PATCHES_H
|
||||
|
||||
#include "utils.h"
|
||||
|
||||
void package2_patch_kernel(void *kernel, size_t kernel_size);
|
||||
|
||||
#endif
|
|
@ -16,7 +16,6 @@
|
|||
static void package2_decrypt(package2_header_t *package2);
|
||||
static size_t package2_get_src_section(void **section, package2_header_t *package2, unsigned int id);
|
||||
static size_t package2_get_thermosphere(void **thermosphere);
|
||||
static void package2_patch_kernel(void *kernel, size_t kernel_size);
|
||||
static ini1_header_t *package2_rebuild_ini1(ini1_header_t *ini1, uint32_t target_firmware);
|
||||
static void package2_append_section(unsigned int id, package2_header_t *package2, void *data, size_t size);
|
||||
static void package2_fixup_header_and_section_hashes(package2_header_t *package2, size_t size);
|
||||
|
@ -263,11 +262,7 @@ static size_t package2_get_thermosphere(void **thermosphere) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void package2_patch_kernel(void *kernel, size_t size) {
|
||||
(void)kernel;
|
||||
(void)size;
|
||||
/* TODO: What kind of patching do we want to try to do here? */
|
||||
}
|
||||
|
||||
|
||||
|
||||
static ini1_header_t *package2_rebuild_ini1(ini1_header_t *ini1, uint32_t target_firmware) {
|
||||
|
|
Loading…
Reference in a new issue