1 /*
2 * Copyright (c) 2025-2026, Advanced Micro Devices, Inc. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 #include <stdint.h>
8 #include <common/runtime_svc.h>
9
10 /*
11 * Default stub implementations when no custom package is used
12 */
custom_early_setup(void)13 void custom_early_setup(void)
14 {
15 /* Default: no-op */
16 }
17
custom_runtime_setup(void)18 void custom_runtime_setup(void)
19 {
20 /* Default: no-op */
21 }
22
custom_mmap_add(void)23 void custom_mmap_add(void)
24 {
25 /* Default: no-op */
26 }
27
custom_smc_handler(uint32_t smc_fid,u_register_t x1,u_register_t x2,u_register_t x3,u_register_t x4,void * cookie,void * handle,u_register_t flags)28 uintptr_t custom_smc_handler(uint32_t smc_fid,
29 u_register_t x1,
30 u_register_t x2,
31 u_register_t x3,
32 u_register_t x4,
33 void *cookie,
34 void *handle,
35 u_register_t flags)
36 {
37 /* Default: unsupported SMC */
38 SMC_RET1(handle, SMC_UNK);
39 }
40