kernel: fix k_mem_partition data types
We need a size_t and not a u32_t for partition sizes, for 64-bit compatibility. Additionally, app_memdomain.h was also casting the base address to a u32_t instead of a uintptr_t. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
8e0e23fefc
commit
a824821b86
4 changed files with 7 additions and 7 deletions
|
@ -5128,7 +5128,7 @@ struct k_mem_partition {
|
|||
/** start address of memory partition */
|
||||
uintptr_t start;
|
||||
/** size of memory partition */
|
||||
u32_t size;
|
||||
size_t size;
|
||||
#if defined(CONFIG_MEMORY_PROTECTION)
|
||||
/** attribute of memory partition */
|
||||
k_mem_partition_attr_t attr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue