From 99587318151fc0b64ffe4a86b3941ef918bd5d73 Mon Sep 17 00:00:00 2001 From: Kangheui Won Date: Fri, 2 Oct 2020 12:54:25 +1000 Subject: amd/picasso/psp_verstage: Add modexp svc wrapper The PSP bootloader version 0.08.0B.7B added support for the Mod Exp svc call. BUG=b:169157796 BRANCH=zork TEST=build verstage for zork Signed-off-by: Kangheui Won Change-Id: Ifdbf20544b21b7fa90a49c5497ff4a5da61bebb1 Reviewed-on: https://review.coreboot.org/c/coreboot/+/45985 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Eric Peers Reviewed-by: Marshall Dawson Reviewed-by: Edward O'Callaghan --- src/soc/amd/picasso/psp_verstage/svc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/soc/amd/picasso') diff --git a/src/soc/amd/picasso/psp_verstage/svc.c b/src/soc/amd/picasso/psp_verstage/svc.c index eff026160a..b847276d84 100644 --- a/src/soc/amd/picasso/psp_verstage/svc.c +++ b/src/soc/amd/picasso/psp_verstage/svc.c @@ -157,3 +157,10 @@ uint32_t svc_rsa_pkcs_verify(const RSAPKCS_VERIFY_PARAMS *rsa_params) SVC_CALL1(SVC_RSAPKCS_VERIFY, rsa_params, retval); return retval; } + +uint32_t svc_modexp(MOD_EXP_PARAMS *mod_exp_param) +{ + uint32_t retval = 0; + SVC_CALL1(SVC_MODEXP, mod_exp_param, retval); + return retval; +} -- cgit v1.2.3