summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorRudolf Marek <r.marek@assembler.cz>2010-12-13 19:59:13 +0000
committerRudolf Marek <r.marek@assembler.cz>2010-12-13 19:59:13 +0000
commitc4369536da601a02b23cb936c16e54c0485ec21e (patch)
tree6e62d3fac5226b775c021c34f2b6283d4f428ad9 /src/lib
parent59f410fa43e4176f2f4ded254ee4438f446b1c2d (diff)
downloadcoreboot-c4369536da601a02b23cb936c16e54c0485ec21e.tar.xz
Following patch adds support for suspend/resume functions. I had to change the get_cbmem_toc because macro magic did not work well.
The writes to NVRAM are not used in asrock board (k8 pre rev f) but they should work when used with am2 boards. In fact maybe the suspend will work on mahogany or others ;) - with some simple patch which follows for asrock. Signed-off-by: Rudolf Marek <r.marek@assembler.cz> Acked-by: Peter Stuge <peter@stuge.se> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6173 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/lib')
-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)