aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Peng <kevin.peng@arm.com>2021-05-21 09:57:28 +0800
committerKen Liu <ken.liu@arm.com>2021-05-21 06:01:11 +0200
commit34060489be415689493dc9b7a8ff5d7bb6013f9b (patch)
tree906edc8a9c393d4784d77d8536f3f762d7a598ee
parentf40be9345761f6e6f0757dc74330e5270c5c0dda (diff)
downloadtrusted-firmware-m-34060489be415689493dc9b7a8ff5d7bb6013f9b.tar.gz
SPM: Fix TFM_DEFAULT_SECURE_IRQ_PRIOTITY typo
It should be TFM_DEFAULT_SECURE_IRQ_PRIO*R*ITY. In the cases when the priority in interrupt controller is not set, the default value TFM_DEFAULT_SECURE_IRQ_PRIORITY cannot be found and build fails in IPC model. Change-Id: I6412de4163c793bfe9da361cacc8e8c19855c76c Signed-off-by: Kevin Peng <kevin.peng@arm.com>
-rw-r--r--docs/technical_references/tfm_secure_irq_handling.rst2
-rw-r--r--secure_fw/spm/cmsis_func/tfm_secure_irq_handlers.inc.template2
-rw-r--r--secure_fw/spm/include/tfm_irq_list.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/docs/technical_references/tfm_secure_irq_handling.rst b/docs/technical_references/tfm_secure_irq_handling.rst
index 469d0446a3..253ef355b1 100644
--- a/docs/technical_references/tfm_secure_irq_handling.rst
+++ b/docs/technical_references/tfm_secure_irq_handling.rst
@@ -80,7 +80,7 @@ An IRQ handler is defined by the following nodes:
``signal`` and ``source`` are mandatory.
``tfm_irq_priority`` is optional. If ``tfm_irq_priority`` is not set for an
- IRQ, the default is value is ``TFM_DEFAULT_SECURE_IRQ_PRIOTITY``.
+ IRQ, the default is value is ``TFM_DEFAULT_SECURE_IRQ_PRIORITY``.
If an IRQ handler is registered, TF-M will:
diff --git a/secure_fw/spm/cmsis_func/tfm_secure_irq_handlers.inc.template b/secure_fw/spm/cmsis_func/tfm_secure_irq_handlers.inc.template
index 522886bcce..4995f17ae2 100644
--- a/secure_fw/spm/cmsis_func/tfm_secure_irq_handlers.inc.template
+++ b/secure_fw/spm/cmsis_func/tfm_secure_irq_handlers.inc.template
@@ -34,7 +34,7 @@ const struct tfm_core_irq_signal_data_t tfm_core_irq_signals[] = {
{% if handler.tfm_irq_priority %}
{% set irq_data.priority = handler.tfm_irq_priority %}
{% else %}
- {% set irq_data.priority = "TFM_DEFAULT_SECURE_IRQ_PRIOTITY" %}
+ {% set irq_data.priority = "TFM_DEFAULT_SECURE_IRQ_PRIORITY" %}
{% endif %}
{{ _irq_record(partition.manifest.name, handler.signal, irq_data.line, irq_data.priority) }}
{% endfor %}
diff --git a/secure_fw/spm/include/tfm_irq_list.h b/secure_fw/spm/include/tfm_irq_list.h
index bb34616f8f..fbe01ad7e0 100644
--- a/secure_fw/spm/include/tfm_irq_list.h
+++ b/secure_fw/spm/include/tfm_irq_list.h
@@ -11,7 +11,7 @@
#include "tfm_hal_device_header.h"
#include "psa/service.h"
-#define TFM_DEFAULT_SECURE_IRQ_PRIOTITY 128
+#define TFM_DEFAULT_SECURE_IRQ_PRIORITY 128
struct tfm_core_irq_signal_data_t {
int32_t partition_id;