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:
parent
2e27adb569
commit
ec47784a28
5 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
ccflags-y += -I${srctree}/samples/include
|
||||
|
||||
obj-y += main.o
|
||||
obj-y += asm.o
|
||||
obj-y += asm_$(ARCH).o
|
||||
|
|
0
samples/nanokernel/test/test_mem_safe/src/asm_arm.S
Normal file
0
samples/nanokernel/test/test_mem_safe/src/asm_arm.S
Normal 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);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
[test]
|
||||
tags = core
|
||||
arch_whitelist = x86
|
||||
arch_whitelist = x86 arm
|
||||
config_whitelist = !CONFIG_X86_IAMCU
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue