mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-24 12:19:21 +01:00
key works fine in SRAM now, use ALIGNED() instead of __attribute__
This commit is contained in:
parent
4014d55c0c
commit
9ad13f0a62
7
boot2.c
7
boot2.c
@ -6,9 +6,9 @@
|
||||
#include "gecko.h"
|
||||
#include "powerpc.h"
|
||||
|
||||
static u8 boot2[256 << 11] MEM2_BSS __attribute__((aligned(64)));
|
||||
static u8 key[32] MEM2_BSS __attribute__((aligned(64)));
|
||||
static u8 ecc[128] __attribute__((aligned(64)));
|
||||
static u8 boot2[256 << 11] MEM2_BSS ALIGNED(64);
|
||||
static u8 key[32] ALIGNED(64);
|
||||
static u8 ecc[128] ALIGNED(64);
|
||||
static u8 boot2_initialized = 0;
|
||||
extern void *vector;
|
||||
|
||||
@ -59,7 +59,6 @@ void boot2_init() {
|
||||
aes_set_key(otp.common_key);
|
||||
memcpy(key, tikptr+0x1bf, 16);
|
||||
dc_flushrange(key, 32);
|
||||
gecko_puts("dc_flush done.\n");
|
||||
aes_decrypt(key, key, 1, 0);
|
||||
dc_invalidaterange(key, 32);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user