aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/intel/sandybridge/raminit_tables.h
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-03-21 12:45:12 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-03-23 19:24:22 +0000
commit7f6586ff782e632902ae9a807b95c97659dd6a9a (patch)
tree624e80a86cad0a613a3aff75bec6162f61cce995 /src/northbridge/intel/sandybridge/raminit_tables.h
parent0e47ad6d2cd6322324658757cb345c5758449e18 (diff)
nb/intel/sandybridge: Do not define tables in a header
Header files are supposed to not make allocations from .bss. Builds fail if said file is included multiple times. To prevent this from happening, move the definitions to a C file. Also, rename raminit_patterns to raminit_tables. This is because more tables that are not patterns will be added here in subsequent changes. Tested on Asus P8Z77-V LX2, still boots fine. Change-Id: If8e3a285ecdc4df9e978ae156be915ced6e1750b Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39754 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/northbridge/intel/sandybridge/raminit_tables.h')
-rw-r--r--src/northbridge/intel/sandybridge/raminit_tables.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/northbridge/intel/sandybridge/raminit_tables.h b/src/northbridge/intel/sandybridge/raminit_tables.h
new file mode 100644
index 0000000000..4e225552c3
--- /dev/null
+++ b/src/northbridge/intel/sandybridge/raminit_tables.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/* This file is part of the coreboot project. */
+
+#ifndef RAMINIT_TABLES_H
+#define RAMINIT_TABLES_H
+
+#include <types.h>
+
+extern const u32 pattern[32][16];
+
+extern const u8 use_base[63][32];
+
+extern const u8 invert[63][32];
+
+#endif /* RAMINIT_TABLES_H */