summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-01-10 14:45:59 -0800
committerKeith Packard <keithp@keithp.com>2017-02-20 11:16:52 -0800
commit399ba0a62422f71ff9669ba03b6a058bb2981c27 (patch)
tree0f1bb937f30396e766dd187a1ee375fbe1977120 /src
parent30d6b241447cb922b9316e86817f6e31eb973eed (diff)
altos/lisp: Tell compiler that the two lisp memory pools are aligned
Otherwise, it will generate unaligned accesses to things fetched from them. Sigh. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/lisp/ao_lisp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lisp/ao_lisp.h b/src/lisp/ao_lisp.h
index fa3632b1..8f5c3d8e 100644
--- a/src/lisp/ao_lisp.h
+++ b/src/lisp/ao_lisp.h
@@ -50,7 +50,7 @@ ao_lisp_os_restore(void);
#ifdef AO_LISP_MAKE_CONST
#define AO_LISP_POOL_CONST 16384
-extern uint8_t ao_lisp_const[AO_LISP_POOL_CONST];
+extern uint8_t ao_lisp_const[AO_LISP_POOL_CONST] __attribute__((aligned(4)));
#define ao_lisp_pool ao_lisp_const
#define AO_LISP_POOL AO_LISP_POOL_CONST
@@ -84,7 +84,7 @@ extern uint8_t ao_lisp_const[AO_LISP_POOL_CONST];
#ifndef AO_LISP_POOL
#define AO_LISP_POOL 3072
#endif
-extern uint8_t ao_lisp_pool[AO_LISP_POOL + AO_LISP_POOL_EXTRA];
+extern uint8_t ao_lisp_pool[AO_LISP_POOL + AO_LISP_POOL_EXTRA] __attribute__((aligned(4)));
#endif
/* Primitive types */