kernel: mem_domain: Pass proper type to ensure_w_xor_x()

The attributes are an u32_t only on ARM and ARC; on x86, it's something
else entirely.  Use the proper type to avoid attributes being
truncated.

Signed-off-by: Leandro Pereira <leandro.pereira@intel.com>
This commit is contained in:
Leandro Pereira 2018-02-20 16:15:14 -08:00 committed by Andrew Boie
commit 214c685726

View file

@ -12,7 +12,7 @@
static u8_t max_partitions;
static void ensure_w_xor_x(u32_t attrs)
static void ensure_w_xor_x(k_mem_partition_attr_t attrs)
{
#if defined(CONFIG_EXECUTE_XOR_WRITE) && __ASSERT_ON
bool writable = K_MEM_PARTITION_IS_WRITABLE(attrs);