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:
Jackie Huang 2023-02-09 02:20:24 -05:00
parent 15a8ffeee0
commit 35d8d23563
1 changed files with 5 additions and 0 deletions

View File

@ -385,6 +385,11 @@ static void sm_trap_thread_log( SmTrapThreadMsgT* msg )
#elif __PPC__
fprintf( _trap_log, "NIP = %08lX (instruction-pointer)\n",
(long) ucontext->uc_mcontext.regs->nip );
#elif __aarch64__
fprintf( _trap_log, "PC = %08lX (instruction-pointer)\n",
(long) ucontext->uc_mcontext.pc );
#endif
fprintf( _trap_log, "traceback: \n" );