coreboot: dynamic cbmem requirement
Dynamic cbmem is now a requirement for relocatable ramstage. This patch replaces the reserve_* fields in the romstage_handoff structure by using the dynamic cbmem library. The haswell code is not moved over in this commit, but it should be safe because there is a hard requirement for DYNAMIC_CBMEM when using a reloctable ramstage. Change-Id: I59ab4552c3ae8c2c3982df458cd81a4a9b712cc2 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/2849 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
24d1d4b472
commit
dd4a6d2357
@ -85,15 +85,6 @@ void hardwaremain(int boot_complete)
|
||||
/* FIXME: Is there a better way to handle this? */
|
||||
init_timer();
|
||||
|
||||
/* CONFIG_EARLY_CBMEM_INIT indicates that romstage initialized
|
||||
* the cbmem area. Therefore the table location can be initialized
|
||||
* early in ramstage if cbmem_get_table_location() is implemented.
|
||||
*/
|
||||
#if CONFIG_EARLY_CBMEM_INIT
|
||||
if (cbmem_get_table_location != NULL &&
|
||||
!cbmem_get_table_location(&high_tables_base, &high_tables_size))
|
||||
cbmem_initialize();
|
||||
#endif
|
||||
init_cbmem_pre_device();
|
||||
|
||||
timestamp_stash(TS_DEVICE_ENUMERATE);
|
||||
|
Reference in New Issue
Block a user