blob: fbee707d3b031db5a14173bffd92e4c428d31813 [file] [log] [blame]
/*
* Copyright (c) 2024, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <arg_struct_def.h>
#include <sdei_fuzz_helper.h>
#include "smcmalloc.h"
#include <tsp_fuzz_helper.h>
int cntid = 0;
#include <vendor_fuzz_helper.h>
/*
* Invoke the SMC call based on the function name specified.
*/
void runtestfunction(int funcid, struct memmod *mmod)
{
bool inrange = (cntid >= SMC_FUZZ_CALL_START) && (cntid < SMC_FUZZ_CALL_END);
inrange = inrange && (funcid != EXCLUDE_FUNCID);
#ifdef SDEI_INCLUDE
run_sdei_fuzz(funcid, mmod, inrange, cntid);
#endif
run_tsp_fuzz(funcid);
#ifdef VEN_INCLUDE
run_ven_el3_fuzz(funcid, mmod);
#endif
cntid++;
}