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

@ -13,7 +13,7 @@
#endif
void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *pEsf)
void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf)
{
ARG_UNUSED(pEsf);

View file

@ -19,7 +19,7 @@
static struct k_thread dump_thread;
static K_THREAD_STACK_DEFINE(dump_stack, STACK_SIZE);
void k_sys_fatal_error_handler(unsigned int reason, const z_arch_esf_t *pEsf)
void k_sys_fatal_error_handler(unsigned int reason, const struct arch_esf *pEsf)
{
ARG_UNUSED(reason);
ARG_UNUSED(pEsf);