soc/cavium/cn81xx: Use correct size for MPIDR_EL1 register

Clang complains about this.

Change-Id: I2d761d2fa946f171033220ab7b2e399cf359782a
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74538
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
Arthur Heymans 2023-04-18 18:51:38 +02:00 committed by Lean Sheng Tan
parent 1443137d5c
commit bba14fe497
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ void secondary_cpu_init(size_t core_id)
size_t cpu_self_get_core_id(void)
{
u32 mpidr_el1;
u64 mpidr_el1;
asm("mrs %0, MPIDR_EL1\n\t" : "=r" (mpidr_el1) :: "memory");
/* Core is 4 bits from AFF0 and rest from AFF1 */