mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-25 06:53:15 +08:00
ZONE(9): Make sure the chunks are properly aligned
This commit is contained in:
parent
4c3433bc33
commit
821ae67576
@ -40,6 +40,7 @@
|
||||
#include <machine/rtems-bsd-kernel-space.h>
|
||||
#include <machine/rtems-bsd-chunk.h>
|
||||
|
||||
#include <rtems/bsd/sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
|
||||
#include <rtems/score/apimutex.h>
|
||||
@ -65,6 +66,8 @@ void
|
||||
rtems_bsd_chunk_init(rtems_bsd_chunk_control *self, uintptr_t info_size,
|
||||
rtems_bsd_chunk_info_ctor info_ctor, rtems_bsd_chunk_info_dtor info_dtor)
|
||||
{
|
||||
info_size = roundup(info_size, CPU_HEAP_ALIGNMENT);
|
||||
|
||||
self->info_size = info_size;
|
||||
self->info_ctor = info_ctor;
|
||||
self->info_dtor = info_dtor;
|
||||
|
Loading…
x
Reference in New Issue
Block a user