key works fine in SRAM now, use ALIGNED() instead of __attribute__

This commit is contained in:
marcan 2009-03-06 05:28:05 +01:00 committed by bushing
parent 4014d55c0c
commit 9ad13f0a62

View File

@ -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);