blob: f2e97f0756173f15d05507aa19c19fbd44ed9fae [file] [log] [blame]
Andrew Thoelke5e910072014-06-02 11:40:35 +01001/*
Boyan Karatotevd43b2ea2025-03-18 10:31:22 +00002 * Copyright (c) 2014-2025, Arm Limited and Contributors. All rights reserved.
Andrew Thoelke5e910072014-06-02 11:40:35 +01003 *
dp-arm82cb2c12017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Andrew Thoelke5e910072014-06-02 11:40:35 +01005 */
6
Andrew Thoelke5e910072014-06-02 11:40:35 +01007#include <platform_def.h>
8
Antonio Nino Diaz09d40e02018-12-14 00:18:21 +00009#include <lib/cassert.h>
10#include <lib/el3_runtime/cpu_data.h>
Boyan Karatotevd43b2ea2025-03-18 10:31:22 +000011#include <plat/common/platform.h>
Antonio Nino Diaz09d40e02018-12-14 00:18:21 +000012
Andrew Thoelke5e910072014-06-02 11:40:35 +010013/* The per_cpu_ptr_cache_t space allocation */
14cpu_data_t percpu_data[PLATFORM_CORE_COUNT];
Boyan Karatotevd43b2ea2025-03-18 10:31:22 +000015
16#ifndef __aarch64__
17cpu_data_t *_cpu_data(void)
18{
19 return _cpu_data_by_index(plat_my_core_pos());
20}
21#endif