c/s
f571b0b "Implement the hvm32 environment" introduced a guard to the
test_NULL_unmapped() selftest, as it is inapplicable in an unpaged
environment.
However, CONFIG_PAGING wasn't ever defined (it disappeared during
development), causing the selftest to be unconditionally omitted even in paged
environments.
Reintroduce the check, based on CONFIG_PAGING_LEVELS being non-zero.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
}
}
-#ifdef CONFIG_PAGING
static void test_NULL_unmapped(void)
{
extern unsigned long label_test_NULL_unmapped[];
xtf_exlog_stop();
}
-#endif
static bool local_unhandled_exception_hook(struct cpu_regs *regs)
{
test_extable();
test_exlog();
test_exec_user();
-#ifdef CONFIG_PAGING
- test_NULL_unmapped();
-#endif
+ if ( CONFIG_PAGING_LEVELS > 0 )
+ test_NULL_unmapped();
test_unhandled_exception_hook();
xtf_success(NULL);