CBMEM: Drop parameter from cbmem_reinit()
Function is always called with get_top_of_ram() - HIGH_MEMORY_SIZE which equals cbmem_base, thus no need to pass it as a parameter. Change-Id: If026cb567ff534716cd9200cdffa08b21ac0c162 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/3564 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
This commit is contained in:
@ -109,18 +109,9 @@ void restore_mtrr(void)
|
||||
|
||||
inline void *backup_resume(void)
|
||||
{
|
||||
unsigned long high_ram_base;
|
||||
void *resume_backup_memory;
|
||||
|
||||
/* Start address of high memory tables */
|
||||
high_ram_base = (u32) get_cbmem_toc();
|
||||
|
||||
/*
|
||||
* printk(BIOS_DEBUG, "CBMEM TOC is at: %x\n", (u32_t)high_ram_base);
|
||||
* printk(BIOS_DEBUG, "CBMEM TOC 0-size:%x\n ",(u32_t)(high_ram_base + HIGH_MEMORY_SIZE + 4096));
|
||||
*/
|
||||
|
||||
if (!cbmem_reinit((u64)high_ram_base))
|
||||
if (!cbmem_reinit())
|
||||
return NULL;
|
||||
|
||||
resume_backup_memory = cbmem_find(CBMEM_ID_RESUME);
|
||||
|
Reference in New Issue
Block a user