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:
Andrew Boie 2019-11-13 12:10:56 -08:00 committed by Andrew Boie
commit a824821b86
4 changed files with 7 additions and 7 deletions

View file

@ -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;