blob: 1176a93f4d3bfd9c767506790ac28764da51b261 [file] [log] [blame]
Soby Mathewb4c6df42022-11-09 11:13:29 +00001/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
4 */
5
6#ifndef CPUID_H
7#define CPUID_H
8
Javier Almansa Sobrino9929a792022-11-22 16:11:13 +00009#include <arch_helpers.h>
10
Soby Mathewb4c6df42022-11-09 11:13:29 +000011static inline unsigned int my_cpuid(void)
12{
Javier Almansa Sobrino9929a792022-11-22 16:11:13 +000013 return (unsigned int)read_tpidr_el2();
Soby Mathewb4c6df42022-11-09 11:13:29 +000014}
15
16#endif /* CPUID_H */