amd/soc/common: Print an error if an AGESA callout isn't supported
Let the developer or user know that a callout isn't supported. Change-Id: I73a6c6930a6661627ad76e27bbb78be99e237949 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/21998 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
f4dc596a38
commit
7e710e047f
|
@ -33,8 +33,12 @@ AGESA_STATUS GetBiosCallout(UINT32 Func, UINTN Data, VOID *ConfigPtr)
|
||||||
if (BiosCallouts[i].CalloutName == Func)
|
if (BiosCallouts[i].CalloutName == Func)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (i >= BiosCalloutsLen)
|
|
||||||
|
if (i >= BiosCalloutsLen) {
|
||||||
|
printk(BIOS_ERR, "ERROR: AGESA Callout Not Supported: 0x%x",
|
||||||
|
(u32)Func);
|
||||||
return AGESA_UNSUPPORTED;
|
return AGESA_UNSUPPORTED;
|
||||||
|
}
|
||||||
|
|
||||||
return BiosCallouts[i].CalloutPtr(Func, Data, ConfigPtr);
|
return BiosCallouts[i].CalloutPtr(Func, Data, ConfigPtr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue