summaryrefslogtreecommitdiff
path: root/src/cpu/intel/fit/fit.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2021-03-16 16:53:00 +0100
committerPatrick Georgi <pgeorgi@google.com>2021-03-19 11:23:59 +0000
commitc9aecb4440d753168e84039c27906472d6174e3e (patch)
tree598f41548b032d396a3db3b8d74091b655751658 /src/cpu/intel/fit/fit.c
parenteeacd8349c1bf208acf393e10e72a6da413a67ef (diff)
cpu/intel/fit: Reserve the FIT pointer using a .c file
No need to do this assembly anymore. Change-Id: I69b42c31e495530fe96030a5a25209775f9d4dca Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/51533 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/cpu/intel/fit/fit.c')
-rw-r--r--src/cpu/intel/fit/fit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpu/intel/fit/fit.c b/src/cpu/intel/fit/fit.c
new file mode 100644
index 0000000000..060023191a
--- /dev/null
+++ b/src/cpu/intel/fit/fit.c
@@ -0,0 +1,6 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <stdint.h>
+
+/* This will get updated by ifittool later on to point to the cbfs 'intel_fit' file. */
+__attribute__((used, __section__(".fit_pointer"))) const uint64_t fit_ptr = 0;