syscall: rename Z_OOPS -> K_OOPS

Rename internal API to not use z_/Z_.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2023-09-27 11:20:28 +00:00 committed by Carles Cufí
commit a08bfeb49c
82 changed files with 651 additions and 651 deletions

View file

@ -80,7 +80,7 @@ test_catch_assert_in_isr
test_catch_z_oops
- Pass illegal address by syscall, then inside the syscall handler, the
Z_OOPS macro will trigger a fatal error that will get caught (as expected).
K_OOPS macro will trigger a fatal error that will get caught (as expected).

View file

@ -31,7 +31,7 @@ enum {
ZTEST_CATCH_FATAL_IN_ISR,
ZTEST_CATCH_ASSERT_FAIL,
ZTEST_CATCH_ASSERT_IN_ISR,
ZTEST_CATCH_USER_FATAL_Z_OOPS,
ZTEST_CATCH_USER_FATAL_K_OOPS,
ZTEST_ERROR_MAX
} error_case_type;
@ -161,7 +161,7 @@ void ztest_post_fatal_error_hook(unsigned int reason,
case ZTEST_CATCH_FATAL_DIVIDE_ZERO:
case ZTEST_CATCH_FATAL_K_PANIC:
case ZTEST_CATCH_FATAL_K_OOPS:
case ZTEST_CATCH_USER_FATAL_Z_OOPS:
case ZTEST_CATCH_USER_FATAL_K_OOPS:
zassert_true(true);
break;
@ -338,7 +338,7 @@ static void trigger_z_oops(void)
/* Set up a dummy syscall frame, pointing to a valid area in memory. */
_current->syscall_frame = _image_ram_start;
Z_OOPS(true);
K_OOPS(true);
}
/**
@ -351,7 +351,7 @@ static void trigger_z_oops(void)
*/
ZTEST(error_hook_tests, test_catch_z_oops)
{
case_type = ZTEST_CATCH_USER_FATAL_Z_OOPS;
case_type = ZTEST_CATCH_USER_FATAL_K_OOPS;
ztest_set_fault_valid(true);
trigger_z_oops();