Thread (14 messages) 14 messages, 4 authors, 2013-09-04

[PATCH v4 1/5] ARM: add basic Trusted Foundations support

From: Stephen Warren <hidden>
Date: 2013-09-03 18:40:26
Also in: linux-devicetree, linux-tegra, lkml

On 08/29/2013 03:57 AM, Alexandre Courbot wrote:
Trusted Foundations is a TrustZone-based secure monitor for ARM that
can be invoked  using a consistent smc-based API on all supported
Nit: s/smc/SMC/?
quoted hunk ↗ jump to hunk
diff --git a/arch/arm/include/asm/trusted_foundations.h b/arch/arm/include/asm/trusted_foundations.h
+#if IS_ENABLED(CONFIG_TRUSTED_FOUNDATIONS)
+
+void register_trusted_foundations(struct trusted_foundations_platform_data *pd);
+void of_register_trusted_foundations(void);
+
+#else
+
+static inline void register_trusted_foundations(
+				   struct trusted_foundations_platform_data *pd)
+{
+	pr_crit("No support for Trusted Foundations, stopping...\n");
+	BUG();
+}
+
+static inline void of_register_trusted_foundations(void)
+{
+	register_trusted_foundations(NULL);
That will cause a hard-fail. I assume that should only happen if the TL
DT node is present; if there's no DT node, it's fine for a kernel
without any TL support to run.
+}
+
+#endif /* IS_ENABLED(CONFIG_TRUSTED_FOUNDATIONS) */
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help