From 9ad13f0a622d2f362723497b7c8da4ec51c66d5e Mon Sep 17 00:00:00 2001 From: marcan Date: Fri, 6 Mar 2009 05:28:05 +0100 Subject: [PATCH] key works fine in SRAM now, use ALIGNED() instead of __attribute__ --- boot2.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/boot2.c b/boot2.c index de8babb..756dd2b 100644 --- a/boot2.c +++ b/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);