From a9f0729f2c9878f8ad568fd5a73518f95a45ed45 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Thu, 26 Mar 2009 12:25:05 +0000 Subject: [PATCH] forcing 16-bit aligned data memory --- core/loader/elfloader-msp430.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/loader/elfloader-msp430.c b/core/loader/elfloader-msp430.c index e80d78891..9b8add125 100644 --- a/core/loader/elfloader-msp430.c +++ b/core/loader/elfloader-msp430.c @@ -28,13 +28,14 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: elfloader-msp430.c,v 1.4 2009/02/27 14:28:02 nvt-se Exp $ + * @(#)$Id: elfloader-msp430.c,v 1.5 2009/03/26 12:25:05 fros4943 Exp $ */ #include "elfloader-arch.h" #include "dev/flash.h" -static char datamemory[ELFLOADER_DATAMEMORY_SIZE]; +static uint16_t datamemory_aligned[ELFLOADER_DATAMEMORY_SIZE/2+1]; +static uint8_t* datamemory = (uint8_t *)datamemory_aligned; #if ELFLOADER_CONF_TEXT_IN_ROM static const char textmemory[ELFLOADER_TEXTMEMORY_SIZE] = {0}; #else /* ELFLOADER_CONF_TEXT_IN_ROM */