1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-01 22:12:06 +00:00

bdk: update memory map with more used addresses

This commit is contained in:
CTCaer 2022-06-29 12:13:04 +03:00
parent 57c8fd1f8c
commit e921d8f51c

View file

@ -17,7 +17,6 @@
#ifndef _MEMORY_MAP_H_ #ifndef _MEMORY_MAP_H_
#define _MEMORY_MAP_H_ #define _MEMORY_MAP_H_
//#define IPL_STACK_TOP 0x4003FF00
/* --- BIT/BCT: 0x40000000 - 0x40003000 --- */ /* --- BIT/BCT: 0x40000000 - 0x40003000 --- */
/* --- IPL: 0x40008000 - 0x40028000 --- */ /* --- IPL: 0x40008000 - 0x40028000 --- */
#define LDR_LOAD_ADDR 0x40007000 #define LDR_LOAD_ADDR 0x40007000
@ -25,13 +24,20 @@
#define IPL_LOAD_ADDR 0x40008000 #define IPL_LOAD_ADDR 0x40008000
#define IPL_SZ_MAX SZ_128K #define IPL_SZ_MAX SZ_128K
/* --- XUSB EP context and TRB ring buffers --- */ #define XUSB_RING_ADDR 0x40020000 // XUSB EP context and TRB ring buffers.
#define XUSB_RING_ADDR 0x40020000
#define SECMON_MIN_START 0x4002B000 #define SECMON_MIN_START 0x4002B000 // Minimum reserved address for secmon.
#define SDRAM_PARAMS_ADDR 0x40030000 // SDRAM extraction buffer during sdram init. #define SDRAM_PARAMS_ADDR 0x40030000 // SDRAM extraction buffer during sdram init.
#define CBFS_DRAM_EN_ADDR 0x4003e000 // u32.
/* start.S / exception_handlers.S */
#define SYS_STACK_TOP_INIT 0x4003FF00
#define FIQ_STACK_TOP 0x40040000
#define IRQ_STACK_TOP 0x40040000
#define IPL_RELOC_ADDR 0x4003FF00
#define IPL_RELOC_SZ 0x10
#define EXCP_STORAGE_ADDR 0x4003FFF0
#define EXCP_STORAGE_SZ 0x10
/* --- DRAM START --- */ /* --- DRAM START --- */
#define DRAM_START 0x80000000 #define DRAM_START 0x80000000
@ -95,6 +101,7 @@
#define NYX_FB2_ADDRESS 0xF6600000 #define NYX_FB2_ADDRESS 0xF6600000
#define NYX_FB_SZ 0x384000 // 1280 x 720 x 4. #define NYX_FB_SZ 0x384000 // 1280 x 720 x 4.
/* OBSOLETE: Very old hwinit based payloads were setting a carveout here. */
#define DRAM_MEM_HOLE_ADR 0xF6A00000 #define DRAM_MEM_HOLE_ADR 0xF6A00000
#define DRAM_MEM_HOLE_SZ 0x8140000 #define DRAM_MEM_HOLE_SZ 0x8140000
/* --- Hole: 129MB 0xF6A00000 - 0xFEB3FFFF --- */ /* --- Hole: 129MB 0xF6A00000 - 0xFEB3FFFF --- */