From 6c5072320994ab18d0d0c8eb58120c34711cc727 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Tue, 15 May 2018 23:59:20 +0200 Subject: [PATCH] Fix tsec.c (thanks @rajkosto @tslater2006), fixes #106 --- fusee/fusee-primary/src/hwinit/tsec.c | 5 ----- fusee/fusee-secondary/src/hwinit/tsec.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/fusee/fusee-primary/src/hwinit/tsec.c b/fusee/fusee-primary/src/hwinit/tsec.c index 3f3235deb..3b229fc52 100644 --- a/fusee/fusee-primary/src/hwinit/tsec.c +++ b/fusee/fusee-primary/src/hwinit/tsec.c @@ -3,10 +3,6 @@ #include "clock.h" #include "t210.h" -static const u8 _tsec_fw[3840] __attribute__((aligned(0x100))) = { - /* ... */ -}; - static int _tsec_dma_wait_idle() { u32 timeout = TMR(0x10) + 10000000; @@ -58,7 +54,6 @@ int tsec_query(u32 carveout, u8 *dst, u32 rev) } //Load firmware. - memcpy((void *)carveout, _tsec_fw, 0xF00); TSEC(0x1110) = carveout >> 8;// tsec_dmatrfbase_r for (u32 addr = 0; addr < 0xF00; addr += 0x100) if (!_tsec_dma_pa_to_internal_100(0, addr, addr)) diff --git a/fusee/fusee-secondary/src/hwinit/tsec.c b/fusee/fusee-secondary/src/hwinit/tsec.c index 3f3235deb..3b229fc52 100644 --- a/fusee/fusee-secondary/src/hwinit/tsec.c +++ b/fusee/fusee-secondary/src/hwinit/tsec.c @@ -3,10 +3,6 @@ #include "clock.h" #include "t210.h" -static const u8 _tsec_fw[3840] __attribute__((aligned(0x100))) = { - /* ... */ -}; - static int _tsec_dma_wait_idle() { u32 timeout = TMR(0x10) + 10000000; @@ -58,7 +54,6 @@ int tsec_query(u32 carveout, u8 *dst, u32 rev) } //Load firmware. - memcpy((void *)carveout, _tsec_fw, 0xF00); TSEC(0x1110) = carveout >> 8;// tsec_dmatrfbase_r for (u32 addr = 0; addr < 0xF00; addr += 0x100) if (!_tsec_dma_pa_to_internal_100(0, addr, addr))