arch: define struct arch_esf and deprecate z_arch_esf_t

Make `struct arch_esf` compulsory for all architectures by
declaring it in the `arch_interface.h` header.

After this commit, the named struct `z_arch_esf_t` is only used
internally to generate offsets, and is slated to be removed
from the `arch_interface.h` header in the future.

Signed-off-by: Yong Cong Sin <ycsin@meta.com>
This commit is contained in:
Yong Cong Sin 2024-06-01 00:07:14 +08:00 committed by Maureen Helm
commit e54b27b967
105 changed files with 203 additions and 222 deletions

View file

@ -153,7 +153,7 @@ static void release_offload_sem(void)
* default one.
*/
void ztest_post_fatal_error_hook(unsigned int reason,
const z_arch_esf_t *pEsf)
const struct arch_esf *pEsf)
{
switch (case_type) {
case ZTEST_CATCH_FATAL_ACCESS: