diff mbox series

[v5,2/7] slof: Make linker script variables accessible

Message ID 20200111012155.3350198-3-stefanb@linux.ibm.com
State Superseded
Headers show
Series Add vTPM 2.0 support to SLOF | expand

Commit Message

Stefan Berger Jan. 11, 2020, 1:21 a.m. UTC
Make linker script variables related to text and data
addresses available to the code so we can measure
the static core root of trust contents.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
---
 slof/OF.h | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 slof/OF.h
diff mbox series

Patch

diff --git a/slof/OF.h b/slof/OF.h
new file mode 100644
index 0000000..83eb121
--- /dev/null
+++ b/slof/OF.h
@@ -0,0 +1,22 @@ 
+/******************************************************************************
+ * Copyright (c) 2020 IBM Corporation
+ * All rights reserved.
+ * This program and the accompanying materials
+ * are made available under the terms of the BSD License
+ * which accompanies this distribution, and is available at
+ * http://www.opensource.org/licenses/bsd-license.php
+ *
+ * Contributors:
+ *     IBM Corporation - initial implementation
+ *****************************************************************************/
+
+#ifndef _SLOF_OF_H
+#define _SLOF_OF_H
+
+/* from OF.lds */
+extern long _slof_data;
+extern long _slof_data_end;
+extern long _slof_text;
+extern long _slof_text_end;
+
+#endif