test(fuzz) adding fuzzing for all SDEI calls
added constraints for all calls
added fuzzer feature to start at arbitrary call number
added fuzzer features for function exclusion, fuzzer starting/ending call
worked on additional fuzzing for event_register
Change-Id: I9814b8387ea9e0fb00b53adbdbe0f8429845924e
Signed-off-by: Alex Liang <alex.liang2@arm.com>
diff --git a/lib/sdei/sdei.c b/lib/sdei/sdei.c
index 157ab6c..eb0e961 100644
--- a/lib/sdei/sdei.c
+++ b/lib/sdei/sdei.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, Arm Limited. All rights reserved.
+ * Copyright (c) 2024, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -76,6 +76,7 @@
args.arg4 = flags;
args.arg5 = mpidr;
ret = tftf_smc(&args);
+
return ret.ret0;
}
@@ -219,3 +220,26 @@
ret = tftf_smc(&args);
return ret.ret0;
}
+
+int64_t sdei_features(uint32_t feature)
+{
+ smc_args args = { 0 };
+ smc_ret_values ret;
+
+ args.fid = SDEI_FEATURES;
+ args.arg1 = feature;
+ ret = tftf_smc(&args);
+ return ret.ret0;
+}
+
+int64_t sdei_event_get_info(int32_t event, uint32_t info)
+{
+ smc_args args = { 0 };
+ smc_ret_values ret;
+
+ args.fid = SDEI_EVENT_GET_INFO;
+ args.arg1 = event;
+ args.arg2 = info;
+ ret = tftf_smc(&args);
+ return ret.ret0;
+}