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:
Marc Jones 2017-10-12 15:19:51 -06:00 committed by Martin Roth
parent f4dc596a38
commit 7e710e047f
1 changed files with 5 additions and 1 deletions

View File

@ -33,8 +33,12 @@ AGESA_STATUS GetBiosCallout(UINT32 Func, UINTN Data, VOID *ConfigPtr)
if (BiosCallouts[i].CalloutName == Func)
break;
}
if (i >= BiosCalloutsLen)
if (i >= BiosCalloutsLen) {
printk(BIOS_ERR, "ERROR: AGESA Callout Not Supported: 0x%x",
(u32)Func);
return AGESA_UNSUPPORTED;
}
return BiosCallouts[i].CalloutPtr(Func, Data, ConfigPtr);
}