Skip to content
Commit 08de658e authored by Leandro Pereira's avatar Leandro Pereira Committed by Anas Nashif
Browse files

kernel: mem_domain: Use u8_t for number of partitions in struct



During system initialization, the global static variable (to
mem_domain.c) is initialized with the number of maximum partitions per
domain.  This variable is of u8_t type.

Assertions throughout the code will check ranges and test for overflow
by relying on implicit type conversion.

Use an u8_t instead of u32_t to avoid doubts.  Also, reorder the
k_mem_partition struct to remove the alignment hole created by reducing
sizeof(num_partitions).

Signed-off-by: default avatarLeandro Pereira <leandro.pereira@intel.com>
parent db094b8d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment