diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/arch/x86/postcar.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/x86/postcar.c b/src/arch/x86/postcar.c index dcacc70445..1df8c44366 100644 --- a/src/arch/x86/postcar.c +++ b/src/arch/x86/postcar.c @@ -23,8 +23,12 @@ void main(void) /* * CBMEM needs to be recovered because timestamps rely on * the cbmem infrastructure being around. Explicitly recover it. + * + * On some platforms CBMEM needs to be initialized earlier. + * Use cbmem_online() to avoid init CBMEM twice. */ - cbmem_initialize(); + if (!cbmem_online()) + cbmem_initialize(); timestamp_add_now(TS_START_POSTCAR); |