commit | 39cd2ebef7ac0b4b0b79fdc4876cfd3430915e84 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Thu May 23 13:42:32 2019 -0400 |
committer | Andrew Boie <andrewboie@gmail.com> | Wed Jul 03 14:17:29 2019 -0700 |
tree | 277c5e0293ea4bd4d6ee5f1b43121173731f9910 | |
parent | 1578ef71b1f4a0980e4cede70183116a782c4972 [diff] |
malloc: make sure returned memory is properly aligned The accounting data stored at the beginning of a memory block used by malloc must push the returned memory address to a word boundary. This is already the case on 32-bit systems, but not on 64-bit systems where e.g. struct k_mem_block_id still has a size of 4. Signed-off-by: Nicolas Pitre <npitre@baylibre.com>