mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-18 10:27:06 +02:00
This patch fixes the non compliant code like missing braces for conditional single statement bodies. Signed-off-by: Venkatesh Yadav Abbarapu <venkatesh.abbarapu@xilinx.com> Change-Id: I95b410ae5950f85dc913c4448fcd0a97e0fd490c
22 lines
405 B
C
22 lines
405 B
C
/*
|
|
* Copyright (c) 2018-2019, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <plat_private.h>
|
|
#include <plat/common/platform.h>
|
|
|
|
int plat_core_pos_by_mpidr(u_register_t mpidr)
|
|
{
|
|
if (mpidr & MPIDR_CLUSTER_MASK) {
|
|
return -1;
|
|
}
|
|
|
|
if ((mpidr & MPIDR_CPU_MASK) >= PLATFORM_CORE_COUNT) {
|
|
return -1;
|
|
}
|
|
|
|
return versal_calc_core_pos(mpidr);
|
|
}
|