tests: mem_map: pin test pages
These get mapped to multiple virtual addresses and must be pinned. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
2fe1fc53c8
commit
24eb50d7f4
1 changed files with 6 additions and 0 deletions
|
@ -168,6 +168,12 @@ void test_z_phys_map_side_effect(void)
|
|||
/* ztest main entry*/
|
||||
void test_main(void)
|
||||
{
|
||||
#ifdef CONFIG_DEMAND_PAGING
|
||||
/* This test sets up multiple mappings of RAM pages, which is only
|
||||
* allowed for pinned memory
|
||||
*/
|
||||
z_mem_pin(test_page, sizeof(test_page));
|
||||
#endif
|
||||
ztest_test_suite(test_mem_map,
|
||||
ztest_unit_test(test_z_phys_map_rw),
|
||||
ztest_unit_test(test_z_phys_map_exec),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue