xref: /rk3399_ARM-atf/lib/el3_runtime/cpu_data_array.c (revision e493b522fc541c99751869e6ab5c3ba80a0a264a)
1 /*
2  * Copyright (c) 2014-2025, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <platform_def.h>
8 
9 #include <lib/cassert.h>
10 #include <lib/el3_runtime/cpu_data.h>
11 #include <plat/common/platform.h>
12 
13 /* The per_cpu_ptr_cache_t space allocation */
14 cpu_data_t percpu_data[PLATFORM_CORE_COUNT];
15 
16 #ifndef __aarch64__
17 cpu_data_t *_cpu_data(void)
18 {
19 	return _cpu_data_by_index(plat_my_core_pos());
20 }
21 #endif
22