diff options
author | Julius Werner <jwerner@chromium.org> | 2020-12-07 14:57:01 -0800 |
---|---|---|
committer | Julius Werner <jwerner@chromium.org> | 2020-12-08 21:38:51 +0000 |
commit | 364f9de1491cc48d8a03085a5748e81dcaea4a63 (patch) | |
tree | 0bba9e60ff82bd6df3bb7d09adf045d6ef3788f0 /src/lib/hardwaremain.c | |
parent | e38482610c1b51dfb347959def00bb2bba91a4a5 (diff) |
cbmem: Make cbmem_online() accurate on stages after romstage
cbmem_online() always returns 1 in stages after romstage. However, CBMEM
isn't actually immediately available in those stages -- instead, it will
only become available when cbmem_initialize() is called. That usually
happens very early in the stage, but there are still small amounts of
code running beforehand, so it is useful to reflect this distinction.
Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: I623c0606a4f49ea98c4c7559436bf32ebb83b456
Reviewed-on: https://review.coreboot.org/c/coreboot/+/48428
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/lib/hardwaremain.c')
0 files changed, 0 insertions, 0 deletions