arch: only print cbmem entries in one place

Each arch was calling cbmem_list() in their own write_tables()
function. Consolidate that call and place it in common code
in write_coreboot_table().

Change-Id: If0d4c84e0f8634e5cef6996b2be4a86cc83c95a9
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/14430
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Aaron Durbin 2016-04-19 15:33:08 -05:00
parent a0546da57a
commit 60eb2c2c40
7 changed files with 3 additions and 18 deletions

View File

@ -50,9 +50,6 @@ void write_tables(void)
new_table_pointer - table_pointer);
post_code(0x9e);
/* Print CBMEM sections */
cbmem_list();
}
void lb_arch_add_records(struct lb_header *header)

View File

@ -50,9 +50,6 @@ void write_tables(void)
new_table_pointer - table_pointer);
post_code(0x9e);
/* Print CBMEM sections */
cbmem_list();
}
void lb_arch_add_records(struct lb_header *header)

View File

@ -51,9 +51,6 @@ void write_tables(void)
new_table_pointer - table_pointer);
post_code(0x9e);
/* Print CBMEM sections */
cbmem_list();
}
void lb_arch_add_records(struct lb_header *header)

View File

@ -51,9 +51,6 @@ void write_tables(void)
new_table_pointer - table_pointer);
post_code(0x9e);
/* Print CBMEM sections */
cbmem_list();
}
void lb_arch_add_records(struct lb_header *header)

View File

@ -50,9 +50,6 @@ void write_tables(void)
new_table_pointer - table_pointer);
post_code(0x9e);
/* Print CBMEM sections */
cbmem_list();
}
void lb_arch_add_records(struct lb_header *header)

View File

@ -212,7 +212,4 @@ void write_tables(void)
write_coreboot_table(low_table_start, low_table_end,
rom_table_start, rom_table_end);
}
/* Print CBMEM sections */
cbmem_list();
}

View File

@ -572,6 +572,9 @@ unsigned long write_coreboot_table(
/* Add all cbmem entries into the coreboot tables. */
cbmem_add_records_to_cbtable(head);
/* Print CBMEM sections */
cbmem_list();
/* Remember where my valid memory ranges are */
return lb_table_fini(head);
}