diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-04 07:54:36 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-04 07:54:36 +0000 |
commit | 6d419676cde900b91f8de3cbfd8664ffa81232d7 (patch) | |
tree | ea5b47de44b0a769088dc23a10b4bf77eb0c36f6 /test/nil | |
parent | bf027add794d08a5dd0fb32948a3fe318fd33b93 (diff) | |
download | ChibiOS-6d419676cde900b91f8de3cbfd8664ffa81232d7.tar.gz ChibiOS-6d419676cde900b91f8de3cbfd8664ffa81232d7.tar.bz2 ChibiOS-6d419676cde900b91f8de3cbfd8664ffa81232d7.zip |
Alignment capability for memory pools.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10759 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/nil')
-rw-r--r-- | test/nil/configuration.xml | 4 | ||||
-rw-r--r-- | test/nil/source/test/test_sequence_006.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/nil/configuration.xml b/test/nil/configuration.xml index 542ccb8b6..c62e00a37 100644 --- a/test/nil/configuration.xml +++ b/test/nil/configuration.xml @@ -1152,10 +1152,10 @@ test_assert(msg1 == MSG_TIMEOUT, "wrong wake-up message");]]></value> <value><![CDATA[#define MEMORY_POOL_SIZE 4
static uint32_t objects[MEMORY_POOL_SIZE];
-static MEMORYPOOL_DECL(mp1, sizeof (uint32_t), NULL);
+static MEMORYPOOL_DECL(mp1, sizeof (uint32_t), PORT_NATURAL_ALIGN, NULL);
#if CH_CFG_USE_SEMAPHORES
-static GUARDEDMEMORYPOOL_DECL(gmp1, sizeof (uint32_t));
+static GUARDEDMEMORYPOOL_DECL(gmp1, sizeof (uint32_t), PORT_NATURAL_ALIGN);
#endif
static void *null_provider(size_t size, unsigned align) {
diff --git a/test/nil/source/test/test_sequence_006.c b/test/nil/source/test/test_sequence_006.c index 759ceae52..123b6d5e7 100644 --- a/test/nil/source/test/test_sequence_006.c +++ b/test/nil/source/test/test_sequence_006.c @@ -52,10 +52,10 @@ #define MEMORY_POOL_SIZE 4
static uint32_t objects[MEMORY_POOL_SIZE];
-static MEMORYPOOL_DECL(mp1, sizeof (uint32_t), NULL);
+static MEMORYPOOL_DECL(mp1, sizeof (uint32_t), PORT_NATURAL_ALIGN, NULL);
#if CH_CFG_USE_SEMAPHORES
-static GUARDEDMEMORYPOOL_DECL(gmp1, sizeof (uint32_t));
+static GUARDEDMEMORYPOOL_DECL(gmp1, sizeof (uint32_t), PORT_NATURAL_ALIGN);
#endif
static void *null_provider(size_t size, unsigned align) {
|