Starting from 8960, TZ dumps MPM_SLEEP_TIMETICK_COUNT_VAL in the warm boot entry for each CPU. This allows matching the TZ MPM time stamps with RPM time stamps.
The MPM time stamps are stored in TZ area in Shared IMEM. OEM can use this MPM timer ticket to compare the timer ticket record in the RPM to know whether the unknown reset is caused by RPM or Krait
#define TZBSP_SHARED_IMEM_MPM_SLEEP_TICKS_0 (SHARED_IMEM_TZ_BASE + 0x08)#define TZBSP_SHARED_IMEM_MPM_SLEEP_TICKS_1 (SHARED_IMEM_TZ_BASE + 0x0C)#define TZBSP_SHARED_IMEM_MPM_SLEEP_TICKS_2 (SHARED_IMEM_TZ_BASE + 0x10)#define TZBSP_SHARED_IMEM_MPM_SLEEP_TICKS_3 (SHARED_IMEM_TZ_BASE + 0x14)Value for SHARED_IMEM_TZ_BASE is found in target header in bootloaders/TZ build. For example:
bash-4.1$ find . -iname "*.h" | xargs grep SHARED_IMEM_TZ_BASE./trustzone_images/build/ms/targaaabqnbga.h:#define SHARED_IMEM_TZ_BASE 0x2a03f720
No comments:
Post a Comment