Make functions static (where possible) to reduce code size (trivial).
Also, disable header() for now, as it's not being used. Here are some stats on size differences: - ls 23820 coreinfo.old.elf 23564 coreinfo.new.elf - size *elf text data bss dec hex filename 15199 2468 181904 199571 30b93 coreinfo.old.elf 14934 2468 181912 199314 30a92 coreinfo.new.elf Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3187 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
@@ -121,7 +121,6 @@ int coreboot_module_redraw(WINDOW *win)
|
||||
static void parse_memory(unsigned char *ptr)
|
||||
{
|
||||
struct cb_memory *mem = (struct cb_memory *)ptr;
|
||||
|
||||
int max = (MEM_RANGE_COUNT(mem) > MAX_MEMORY_COUNT)
|
||||
? MAX_MEMORY_COUNT : MEM_RANGE_COUNT(mem);
|
||||
int i;
|
||||
@@ -236,7 +235,7 @@ static int parse_header(void *addr, int len)
|
||||
return 1;
|
||||
}
|
||||
|
||||
int coreboot_module_init(void)
|
||||
static int coreboot_module_init(void)
|
||||
{
|
||||
int ret = parse_header((void *)0x00000, 0x1000);
|
||||
|
||||
|
Reference in New Issue
Block a user