amd/gardenia: Init cbmem in romstage
Change-Id: I6ede71ec660678bb5f77693a9095aa0f198e4e26 Signed-off-by: Marshall Dawson <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/19752 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
f5c3518f0e
commit
2185798019
|
@ -17,6 +17,7 @@
|
|||
#include <arch/acpi.h>
|
||||
#include <arch/io.h>
|
||||
#include <arch/stages.h>
|
||||
#include <cbmem.h>
|
||||
#include <cpu/x86/lapic.h>
|
||||
#include <cpu/x86/bist.h>
|
||||
#include <cpu/amd/car.h>
|
||||
|
@ -62,7 +63,11 @@ void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
|||
|
||||
post_code(0x40);
|
||||
AGESAWRAPPER(amdinitpost);
|
||||
|
||||
post_code(0x41);
|
||||
cbmem_initialize_empty();
|
||||
|
||||
post_code(0x42);
|
||||
AGESAWRAPPER(amdinitenv);
|
||||
/* TODO: Disable cache is not ok. */
|
||||
disable_cache_as_ram();
|
||||
|
|
Loading…
Reference in New Issue