summaryrefslogtreecommitdiff
path: root/drivers/arm
diff options
context:
space:
mode:
authorClaus Pedersen <claustbp@google.com>2022-09-12 22:42:58 +0000
committerAndré Przywara <andre.przywara@arm.com>2022-09-22 13:23:49 +0200
commit885e26830499284a7718f825579d6ebeb8b6cd89 (patch)
tree88d41830192adc771cf3c0bbd9662a61a5260843 /drivers/arm
parent93910a74873cdd28fe9e25a9492993431bc90329 (diff)
downloadarm-trusted-firmware-885e26830499284a7718f825579d6ebeb8b6cd89.tar.gz
refactor(libc): clean up dependencies in libc
- Removing platform dependencies from libc modules. - Replacing panicking with actual error handling. - Debug macros are included indirectly from assert.h. Removing "platform_def.h" from assert.h and adding "common/debug.h" where the macros are used. - Removing hack for fixing PLAT_LOG_LEVEL_ASSERT to 40. Instead removing assert with expression, as this does not provide additional information. Signed-off-by: Claus Pedersen <claustbp@google.com> Change-Id: Icc201ea7b63c1277e423c1cfd13fd6816c2bc568
Diffstat (limited to 'drivers/arm')
-rw-r--r--drivers/arm/gic/v3/gic-x00.c1
-rw-r--r--drivers/arm/gic/v3/gicv3_helpers.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/arm/gic/v3/gic-x00.c b/drivers/arm/gic/v3/gic-x00.c
index 75eb69a31..83ef32f05 100644
--- a/drivers/arm/gic/v3/gic-x00.c
+++ b/drivers/arm/gic/v3/gic-x00.c
@@ -16,6 +16,7 @@
#include <assert.h>
#include <arch_helpers.h>
+#include <common/debug.h>
#include <drivers/arm/arm_gicv3_common.h>
#include <drivers/arm/gicv3.h>
diff --git a/drivers/arm/gic/v3/gicv3_helpers.c b/drivers/arm/gic/v3/gicv3_helpers.c
index f3852d20a..446d0addb 100644
--- a/drivers/arm/gic/v3/gicv3_helpers.c
+++ b/drivers/arm/gic/v3/gicv3_helpers.c
@@ -12,6 +12,8 @@
#include <common/interrupt_props.h>
#include <drivers/arm/gic_common.h>
+#include <platform_def.h>
+
#include "../common/gic_common_private.h"
#include "gicv3_private.h"