CBMEM x86: Unify get_cbmem_toc()
Remove any chipset-specific implementations and use arch-specific implementation of get_cbmem_table() instead. Change-Id: I338ee2c1bd51f5e517462115170dc926e040159e Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/3907 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
@@ -45,12 +45,7 @@ unsigned long get_top_of_ram(void)
|
||||
return qemu_get_memory_size() * 1024;
|
||||
}
|
||||
|
||||
#if !CONFIG_DYNAMIC_CBMEM
|
||||
struct cbmem_entry *get_cbmem_toc(void)
|
||||
{
|
||||
return (struct cbmem_entry *)(get_top_of_ram() - HIGH_MEMORY_SIZE);
|
||||
}
|
||||
#else
|
||||
#if CONFIG_DYNAMIC_CBMEM
|
||||
void *cbmem_top(void)
|
||||
{
|
||||
/* Top of cbmem is at lowest usable DRAM address below 4GiB. */
|
||||
|
Reference in New Issue
Block a user