2 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
4 * SPDX-License-Identifier: BSD-3-Clause
7 #include <asm_macros.S>
8 #include <lib/el3_runtime/cpu_data.h>
11 .globl _cpu_data_by_index
13 /* -----------------------------------------------------------------
14 * cpu_data_t *_cpu_data(void)
16 * Return the cpu_data structure for the current CPU.
17 * -----------------------------------------------------------------
20 /* r12 is pushed to meet the 8 byte stack alignment requirement */
27 /* -----------------------------------------------------------------
28 * cpu_data_t *_cpu_data_by_index(uint32_t cpu_index)
30 * Return the cpu_data structure for the CPU with given linear index
32 * This can be called without a valid stack.
34 * -----------------------------------------------------------------
36 func _cpu_data_by_index
37 mov_imm r1, CPU_DATA_SIZE
42 endfunc _cpu_data_by_index