Improve heap fixing (works now to get iBoot!)
This commit is contained in:
@@ -40,6 +40,10 @@
|
||||
#define ADDR_DEV_MEMALIGN 0x10000f380
|
||||
#define ADDR_DEV_FREE 0x10000f1b0
|
||||
|
||||
#define ADDR_HEAP_COOKIE 0x180080640
|
||||
#define ADDR_HEAP_BASE 0x1801b4000
|
||||
#define ADDR_HEAP_END 0x1801fffc0
|
||||
|
||||
/* Misc */
|
||||
#define ADDR_RANDOM_RET 0x10000b924
|
||||
#define ADDR_SYNC_ENTRY 0x1800afc84
|
||||
|
||||
@@ -17,6 +17,21 @@ struct aes_constants
|
||||
unsigned char rc_lookup[11];
|
||||
} __attribute__ ((packed));
|
||||
|
||||
struct heap_header
|
||||
{
|
||||
unsigned long long chksum;
|
||||
unsigned long long pad[3];
|
||||
|
||||
unsigned long long curr_size;
|
||||
unsigned long long curr_free : 1;
|
||||
|
||||
unsigned long long prev_free : 1;
|
||||
unsigned long long prev_size : (sizeof(unsigned long long) * 8 - 2);
|
||||
|
||||
unsigned long long pad_start;
|
||||
unsigned long long pad_end;
|
||||
} header;
|
||||
|
||||
struct bern_data
|
||||
{
|
||||
double t[16][256];
|
||||
|
||||
Reference in New Issue
Block a user