sm-common: add support for arm64
Add support for aarch64 in sm_trap_thread_log. Test Plan: PASS: build-pkgs on x86-64 host PASS: build-image on x86-64 host PASS: build-pkgs on arm64 host PASS: build-image on arm64 host PASS: Deploy AIO-SX on x86-64 targets and check sm service PASS: Deploy AIO-SX on arm64 targets and check sm service PASS: Deploy AIO-DX on arm64 targets and check sm service PASS: Deploy std (2+2+2) on arm64 targets and check sm service Story: 2010739 Task: 48017 Change-Id: Iebea29e6df900f63d0dce24cf1a139f60c1cf6f8 Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
parent
15a8ffeee0
commit
35d8d23563
|
@ -385,6 +385,11 @@ static void sm_trap_thread_log( SmTrapThreadMsgT* msg )
|
||||||
#elif __PPC__
|
#elif __PPC__
|
||||||
fprintf( _trap_log, "NIP = %08lX (instruction-pointer)\n",
|
fprintf( _trap_log, "NIP = %08lX (instruction-pointer)\n",
|
||||||
(long) ucontext->uc_mcontext.regs->nip );
|
(long) ucontext->uc_mcontext.regs->nip );
|
||||||
|
|
||||||
|
#elif __aarch64__
|
||||||
|
fprintf( _trap_log, "PC = %08lX (instruction-pointer)\n",
|
||||||
|
(long) ucontext->uc_mcontext.pc );
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
fprintf( _trap_log, "traceback: \n" );
|
fprintf( _trap_log, "traceback: \n" );
|
||||||
|
|
Loading…
Reference in New Issue