diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libc/malloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/lib/libc/malloc.c b/c/src/lib/libc/malloc.c index 0396b051be..d3121f90b4 100644 --- a/c/src/lib/libc/malloc.c +++ b/c/src/lib/libc/malloc.c @@ -82,9 +82,9 @@ void RTEMS_Malloc_Initialize( /* DOES NOT RETURN!!! */ } - if (u32_address & (CPU_ALIGNMENT-1)) { + if (u32_address & (CPU_HEAP_ALIGNMENT-1)) { old_address = u32_address; - u32_address = (u32_address + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); + u32_address = (u32_address + CPU_HEAP_ALIGNMENT) & ~(CPU_HEAP_ALIGNMENT-1); /* * adjust the length by whatever we aligned by |