summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorAchin Gupta <achin.gupta@arm.com>2015-11-04 17:27:16 +0000
committerAchin Gupta <achin.gupta@arm.com>2015-11-04 17:27:16 +0000
commitdd64d425a3df702dbe899538a6d8b8e61226722c (patch)
tree36bdec687ef9920c22b965e4a73f6422d7d6babd /common
parent55608066648b870f5b9a6e546614c7d5c18b6377 (diff)
parentee5c2b1382255cba3fc3d473ee8445efdba160ad (diff)
Merge pull request #421 from sandrine-bailleux/sb/improve-display_boot_progress
Improve images transitions debugging messages
Diffstat (limited to 'common')
-rw-r--r--common/bl_common.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/common/bl_common.c b/common/bl_common.c
index 91a0ae8c..1cf0b23b 100644
--- a/common/bl_common.c
+++ b/common/bl_common.c
@@ -352,3 +352,27 @@ int load_auth_image(meminfo_t *mem_layout,
return 0;
}
+
+/*******************************************************************************
+ * Print the content of an entry_point_info_t structure.
+ ******************************************************************************/
+void print_entry_point_info(const entry_point_info_t *ep_info)
+{
+ INFO("Entry point address = 0x%llx\n",
+ (unsigned long long) ep_info->pc);
+ INFO("SPSR = 0x%lx\n", (unsigned long) ep_info->spsr);
+
+#define PRINT_IMAGE_ARG(n) \
+ VERBOSE("Argument #" #n " = 0x%llx\n", \
+ (unsigned long long) ep_info->args.arg##n)
+
+ PRINT_IMAGE_ARG(0);
+ PRINT_IMAGE_ARG(1);
+ PRINT_IMAGE_ARG(2);
+ PRINT_IMAGE_ARG(3);
+ PRINT_IMAGE_ARG(4);
+ PRINT_IMAGE_ARG(5);
+ PRINT_IMAGE_ARG(6);
+ PRINT_IMAGE_ARG(7);
+#undef PRINT_IMAGE_ARG
+}