test_mem_safe: support ARM

Test works for ARM, but not testing sys_mem_safe_write_to_text_section()
since base ARM image are XIP images.

This test could be enhanced to  boot a secondary non-XIP image for ARM
to test writing to .text.

Change-Id: I56aef68afabe88588b61c273901491de0c24a39b
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2015-10-30 17:06:50 -04:00 committed by Anas Nashif
commit ec47784a28
5 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,4 @@
ccflags-y += -I${srctree}/samples/include
obj-y += main.o
obj-y += asm.o
obj-y += asm_$(ARCH).o

View file

@ -370,6 +370,7 @@ void main(void)
TC_PRINT("PASS (%d)\n", rc);
}
#if !defined(CONFIG_XIP)
/*****
* _mem_safe_write_to_text_section()
*/
@ -404,6 +405,7 @@ void main(void)
}
}
}
#endif
TC_END_RESULT(rv);
TC_END_REPORT(rv);

View file

@ -1,4 +1,4 @@
[test]
tags = core
arch_whitelist = x86
arch_whitelist = x86 arm
config_whitelist = !CONFIG_X86_IAMCU