arch: arm64: Dump registers content on fatal error

Extend the ESF structure and dump the most important registers in the
error exception handler.

Signed-off-by: Carlo Caione <ccaione@baylibre.com>
This commit is contained in:
Carlo Caione 2020-01-20 16:14:17 +01:00 committed by Anas Nashif
commit 3aef85458d
7 changed files with 52 additions and 15 deletions

View file

@ -56,10 +56,10 @@ void arch_new_thread(struct k_thread *thread, k_thread_stack_t *stack,
pInitCtx = (struct __esf *)(STACK_ROUND_DOWN(stackEnd -
sizeof(struct __basic_sf)));
pInitCtx->basic.x0 = (u64_t)pEntry;
pInitCtx->basic.x1 = (u64_t)parameter1;
pInitCtx->basic.x2 = (u64_t)parameter2;
pInitCtx->basic.x3 = (u64_t)parameter3;
pInitCtx->basic.regs[0] = (u64_t)pEntry;
pInitCtx->basic.regs[1] = (u64_t)parameter1;
pInitCtx->basic.regs[2] = (u64_t)parameter2;
pInitCtx->basic.regs[3] = (u64_t)parameter3;
/*
* We are saving: