diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2022-11-08 14:38:41 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-12-25 15:09:16 +0000 |
commit | 9523e3b7905a3c20214b8af4bacd50abe178eded (patch) | |
tree | c2a9ea9438b0d4d1f4c18bcaaccb845bf4b899b6 /src/arch/x86/postcar_loader.c | |
parent | 70191da272222217cb208ed0972cf4ddb78881f8 (diff) |
arch/x86: Use 'enum cb_err'
Change-Id: I38e4b8c6adfaaa45377b2fbe0644285d21841cd1
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68369
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin L Roth <gaumless@gmail.com>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Diffstat (limited to 'src/arch/x86/postcar_loader.c')
-rw-r--r-- | src/arch/x86/postcar_loader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/x86/postcar_loader.c b/src/arch/x86/postcar_loader.c index be4a235bf1..a8a77e0227 100644 --- a/src/arch/x86/postcar_loader.c +++ b/src/arch/x86/postcar_loader.c @@ -20,7 +20,7 @@ static size_t var_mtrr_ctx_size(void) return sizeof(struct var_mtrr_context) + mtrr_count * 2 * sizeof(msr_t); } -static int postcar_frame_init(struct postcar_frame *pcf) +static enum cb_err postcar_frame_init(struct postcar_frame *pcf) { memset(pcf, 0, sizeof(*pcf)); @@ -29,13 +29,13 @@ static int postcar_frame_init(struct postcar_frame *pcf) ctx = cbmem_add(CBMEM_ID_ROMSTAGE_RAM_STACK, var_mtrr_ctx_size()); if (ctx == NULL) { printk(BIOS_ERR, "Couldn't add var_mtrr_ctx setup in cbmem.\n"); - return -1; + return CB_ERR; } pcf->mtrr = ctx; var_mtrr_context_init(pcf->mtrr); - return 0; + return CB_SUCCESS; } void postcar_frame_add_mtrr(struct postcar_frame *pcf, |