arch: arc: arm: sys_thread_self_get -> k_current_get
Change-Id: Iaa01b0d8733d76888524cfd258bacbd9c11142de
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/arch/arm/core/fault.c b/arch/arm/core/fault.c
index cc0c84f..a332c4c 100644
--- a/arch/arm/core/fault.c
+++ b/arch/arm/core/fault.c
@@ -66,7 +66,7 @@
{
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 bd1b836..89757a2 100644
--- a/arch/x86/core/fatal.c
+++ b/arch/x86/core/fatal.c
@@ -116,7 +116,7 @@
"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,