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
|
@ -110,8 +110,8 @@ struct z_app_region {
|
|||
extern char Z_APP_START(name)[]; \
|
||||
extern char Z_APP_SIZE(name)[]; \
|
||||
struct k_mem_partition name = { \
|
||||
.start = (u32_t) &Z_APP_START(name), \
|
||||
.size = (u32_t) &Z_APP_SIZE(name), \
|
||||
.start = (uintptr_t) &Z_APP_START(name), \
|
||||
.size = (size_t) &Z_APP_SIZE(name), \
|
||||
.attr = K_MEM_PARTITION_P_RW_U_RW \
|
||||
}; \
|
||||
extern char Z_APP_BSS_START(name)[]; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue