From 342619526c0e7bd084c6739782e4b332e01fa564 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Fri, 19 Mar 2010 02:33:40 +0000 Subject: Get rid of a few warnings: 1. Add some more prototypes to lib.h 2. Include console.h when not using romcc 3. Eliminate an unused function 4. Set a default for SSE2, since it is just for ramtest performance Signed-off-by: Myles Watson Acked-by: Patrick Georgi git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5260 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/lib/generic_sdram.c | 9 +-------- src/lib/ramtest.c | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'src/lib') diff --git a/src/lib/generic_sdram.c b/src/lib/generic_sdram.c index cdb06cd73f..7be0537484 100644 --- a/src/lib/generic_sdram.c +++ b/src/lib/generic_sdram.c @@ -1,3 +1,4 @@ +#include /* Prototypes */ #ifndef RAMINIT_SYSINFO #define RAMINIT_SYSINFO 0 @@ -12,14 +13,6 @@ static inline void print_debug_sdram_8(const char *strval, uint32_t val) #endif } -void sdram_no_memory(void) -{ - print_err("No memory!!\r\n"); - while(1) { - hlt(); - } -} - /* Setup SDRAM */ #if RAMINIT_SYSINFO == 1 void sdram_initialize(int controllers, const struct mem_controller *ctrl, void *sysinfo) diff --git a/src/lib/ramtest.c b/src/lib/ramtest.c index 6268aaa6cd..d707bf2385 100644 --- a/src/lib/ramtest.c +++ b/src/lib/ramtest.c @@ -1,3 +1,5 @@ +#include /* Prototypes */ + static void write_phys(unsigned long addr, unsigned long value) { // Assembler in lib/ is very ugly. But we properly guarded -- cgit v1.2.3