From 38cc9162bf757d9f12b1c3a82228b1d2aa838955 Mon Sep 17 00:00:00 2001 From: Godzil Date: Mon, 16 Apr 2012 23:28:41 +0200 Subject: [PATCH] Correct a potential bug (that I encounter) with non allignement problem with LPC copy function. --- src/bootldr/fileops.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bootldr/fileops.h b/src/bootldr/fileops.h index 8f55a70..3588740 100644 --- a/src/bootldr/fileops.h +++ b/src/bootldr/fileops.h @@ -31,7 +31,9 @@ enum filestates { FILE_OK=0, FILE_ERR, FILE_EOF }; -BYTE file_buf[512]; +#define GCC_ALIGN_WORKAROUND __attribute__ ((aligned(4))) +BYTE file_buf[512] GCC_ALIGN_WORKAROUND; + FATFS fatfs; FIL file_handle; FRESULT file_res;