summaryrefslogtreecommitdiff
path: root/src/lib/cbmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/cbmem.c')
-rw-r--r--src/lib/cbmem.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/lib/cbmem.c b/src/lib/cbmem.c
index aa10a15798..c758240d64 100644
--- a/src/lib/cbmem.c
+++ b/src/lib/cbmem.c
@@ -36,20 +36,7 @@ struct cbmem_entry {
u64 size;
} __attribute__((packed));
-
-#ifdef __PRE_RAM__
-
-/* note this should be done as weak function but we do #include
- of C files in the romstage breaking this (in same compile
- unit is weak and non weak function
-struct cbmem_entry *__attribute__((weak)) get_cbmem_toc(void)
-*/
-#ifndef get_cbmem_toc
- #define get_cbmem_toc() (struct cbmem_entry *)(get_top_of_ram() - HIGH_MEMORY_SIZE)
-#endif
-
-#else
-
+#ifndef __PRE_RAM__
static struct cbmem_entry *bss_cbmem_toc;
struct cbmem_entry *__attribute__((weak)) get_cbmem_toc(void)