From 7cac3b96255329dc0cdbf3eb22e1c4afe0fde26a Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 10 Nov 2016 11:31:19 -0500 Subject: [PATCH] arch: arc: arm: sys_thread_self_get -> k_current_get Change-Id: Iaa01b0d8733d76888524cfd258bacbd9c11142de Signed-off-by: Anas Nashif --- arch/arm/core/fault.c | 2 +- arch/x86/core/fatal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/core/fault.c b/arch/arm/core/fault.c index cc0c84f6f22..a332c4c6a66 100644 --- a/arch/arm/core/fault.c +++ b/arch/arm/core/fault.c @@ -66,7 +66,7 @@ void _FaultDump(const NANO_ESF *esf, int fault) { PR_EXC("Fault! EXC #%d, Thread: %p, instr @ 0x%" PRIx32 "\n", fault, - sys_thread_self_get(), + k_current_get(), esf->pc); #if !defined(CONFIG_CPU_CORTEX_M0_M0PLUS) diff --git a/arch/x86/core/fatal.c b/arch/x86/core/fatal.c index bd1b8363329..89757a2161c 100644 --- a/arch/x86/core/fatal.c +++ b/arch/x86/core/fatal.c @@ -116,7 +116,7 @@ FUNC_NORETURN void _NanoFatalErrorHandler(unsigned int reason, "eax: 0x%x, ebx: 0x%x, ecx: 0x%x, edx: 0x%x\n" "esi: 0x%x, edi: 0x%x, ebp: 0%x, esp: 0x%x\n" "eflags: 0x%x\n", - sys_thread_self_get(), + k_current_get(), pEsf->cs & 0xFFFF, pEsf->eip, pEsf->eax, pEsf->ebx, pEsf->ecx, pEsf->edx, pEsf->esi, pEsf->edi, pEsf->ebp, pEsf->esp,