hekate/nyx: utilize bdk global header

This commit is contained in:
CTCaer
2022-01-16 00:04:34 +02:00
parent a5cd962f99
commit 5894062b93
55 changed files with 97 additions and 389 deletions

View File

@@ -18,15 +18,15 @@
#include <string.h>
#include <bdk.h>
#include "fss.h"
#include "hos.h"
#include "../config.h"
#include <libs/fatfs/ff.h>
#include <mem/heap.h>
#include "../storage/emummc.h"
#include <storage/nx_sd.h>
#include <gfx_utils.h>
//#define DPRINTF(...) gfx_printf(__VA_ARGS__)
#define DPRINTF(...)
extern hekate_config h_cfg;

View File

@@ -20,32 +20,14 @@
#include <string.h>
#include <bdk.h>
#include "hos.h"
#include "hos_config.h"
#include "secmon_exo.h"
#include "../config.h"
#include <display/di.h>
#include <gfx_utils.h>
#include <mem/heap.h>
#include <mem/mc.h>
#include <mem/minerva.h>
#include <mem/smmu.h>
#include <sec/se.h>
#include <sec/se_t210.h>
#include <sec/tsec.h>
#include <soc/bpmp.h>
#include <soc/ccplex.h>
#include <soc/clock.h>
#include <soc/fuse.h>
#include <soc/pmc.h>
#include <soc/t210.h>
#include "../storage/emummc.h"
#include <storage/mbr_gpt.h>
#include "../storage/nx_emmc.h"
#include <storage/nx_sd.h>
#include <storage/sdmmc.h>
#include <utils/btn.h>
#include <utils/util.h>
extern hekate_config h_cfg;

View File

@@ -18,12 +18,10 @@
#ifndef _HOS_H_
#define _HOS_H_
#include <bdk.h>
#include "pkg1.h"
#include "pkg2.h"
#include <sec/se_t210.h>
#include <utils/types.h>
#include <utils/ini.h>
#include <sec/tsec.h>
#include <assert.h>

View File

@@ -17,15 +17,12 @@
#include <string.h>
#include <bdk.h>
#include "hos.h"
#include "hos_config.h"
#include "fss.h"
#include <libs/fatfs/ff.h>
#include <mem/heap.h>
#include <storage/nx_sd.h>
#include <utils/dirlist.h>
#include <gfx_utils.h>
//#define DPRINTF(...) gfx_printf(__VA_ARGS__)
#define DPRINTF(...)

View File

@@ -20,19 +20,12 @@
#include <string.h>
#include <stdlib.h>
#include <bdk.h>
#include "hos.h"
#include "pkg1.h"
#include "../config.h"
#include <gfx_utils.h>
#include <libs/compr/lz4.h>
#include <mem/heap.h>
#include <soc/fuse.h>
#include <sec/se.h>
#include <soc/pmc.h>
#include <soc/t210.h>
#include <storage/nx_sd.h>
#include <utils/aarch64_util.h>
#include <utils/util.h>
extern hekate_config h_cfg;

View File

@@ -17,7 +17,7 @@
#ifndef _PKG1_H_
#define _PKG1_H_
#include <utils/types.h>
#include <bdk.h>
#define PKG1_MAGIC 0x31314B50

View File

@@ -17,6 +17,8 @@
#include <string.h>
#include <bdk.h>
#include "hos.h"
#include "pkg2.h"
#include "pkg2_ini_kippatch.h"
@@ -24,14 +26,7 @@
#include "../config.h"
#include <libs/compr/blz.h>
#include <libs/fatfs/ff.h>
#include <mem/heap.h>
#include <sec/se.h>
#include <sec/se_t210.h>
#include "../storage/emummc.h"
#include <storage/nx_sd.h>
#include <utils/aarch64_util.h>
#include <gfx_utils.h>
extern hekate_config h_cfg;
extern const u8 package2_keyseed[];
@@ -41,7 +36,6 @@ u32 pkg2_newkern_ini1_start;
u32 pkg2_newkern_ini1_end;
#ifdef KIP1_PATCH_DEBUG
#include <utils/util.h>
#define DPRINTF(...) gfx_printf(__VA_ARGS__)
#define DEBUG_PRINTING
#else

View File

@@ -18,8 +18,7 @@
#ifndef _PKG2_H_
#define _PKG2_H_
#include <utils/types.h>
#include <utils/list.h>
#include <bdk.h>
#define PKG2_MAGIC 0x31324B50
#define PKG2_SEC_BASE 0x80000000

View File

@@ -1,9 +1,10 @@
#include <string.h>
#include <stdlib.h>
#include <bdk.h>
#include "pkg2_ini_kippatch.h"
#include <libs/fatfs/ff.h>
#include <mem/heap.h>
#define KPS(x) ((u32)(x) << 29)

View File

@@ -17,8 +17,7 @@
#ifndef _INIPATCH_H_
#define _INIPATCH_H_
#include <utils/types.h>
#include <utils/list.h>
#include <bdk.h>
typedef struct _ini_patchset_t
{

View File

@@ -18,20 +18,13 @@
#include <string.h>
#include <stdlib.h>
#include <bdk.h>
#include "hos.h"
#include "../config.h"
#include <display/di.h>
#include <gfx_utils.h>
#include <libs/fatfs/ff.h>
#include <mem/heap.h>
#include <soc/fuse.h>
#include "../storage/emummc.h"
#include "../storage/nx_emmc.h"
#include <storage/nx_sd.h>
#include <storage/sdmmc.h>
#include <utils/btn.h>
#include <utils/util.h>
#include <utils/types.h>
extern hekate_config h_cfg;

View File

@@ -17,7 +17,7 @@
#ifndef _SECMON_EXO_H_
#define _SECMON_EXO_H_
#include <utils/types.h>
#include <bdk.h>
void config_exosphere(launch_ctxt_t *ctxt, u32 warmboot_base);
void secmon_exo_check_panic();