summaryrefslogtreecommitdiff
path: root/include/plat/arm/board
diff options
context:
space:
mode:
authorSoby Mathew <soby.mathew@arm.com>2016-01-19 17:52:28 +0000
committerSoby Mathew <soby.mathew@arm.com>2016-02-01 10:10:09 +0000
commitd30ac1c36f79588e7384cc56c69f885147a4286f (patch)
treede065c02470d752eaddddc4df77fbb491f48f5fe /include/plat/arm/board
parent870d881ced126bd492fe96f6a7bedd0d869dd23a (diff)
Use tf_printf() for debug logs from xlat_tables.c
The debug prints used to debug translation table setup in xlat_tables.c used the `printf()` standard library function instead of the stack optimized `tf_printf()` API. DEBUG_XLAT_TABLE option was used to enable debug logs within xlat_tables.c and it configured a much larger stack size for the platform in case it was enabled. This patch modifies these debug prints within xlat_tables.c to use tf_printf() and modifies the format specifiers to be compatible with tf_printf(). The debug prints are now enabled if the VERBOSE prints are enabled in Trusted Firmware via LOG_LEVEL build option. The much larger stack size definition when DEBUG_XLAT_TABLE is defined is no longer required and the platform ports are modified to remove this stack size definition. Change-Id: I2f7d77ea12a04b827fa15e2adc3125b1175e4c23
Diffstat (limited to 'include/plat/arm/board')
-rw-r--r--include/plat/arm/board/common/board_arm_def.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/plat/arm/board/common/board_arm_def.h b/include/plat/arm/board/common/board_arm_def.h
index b4e43134..db2a8dfb 100644
--- a/include/plat/arm/board/common/board_arm_def.h
+++ b/include/plat/arm/board/common/board_arm_def.h
@@ -39,9 +39,7 @@
*/
/* Size of cacheable stacks */
-#if DEBUG_XLAT_TABLE
-# define PLATFORM_STACK_SIZE 0x800
-#elif IMAGE_BL1
+#if IMAGE_BL1
#if TRUSTED_BOARD_BOOT
# define PLATFORM_STACK_SIZE 0x1000
#else