mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 10:04:26 +00:00
refactor(errata-abi): move EXTRACT_PARTNUM to arch.h
This patch moves EXTRACT_PARTNUM from errata abi includes to arch.h which is part of common includes Change-Id: Id8bbaf21566f3145a75cfa0dafec6823ed2df3a9 Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com>
This commit is contained in:
parent
4a97ff5111
commit
1073bf3d8c
2 changed files with 4 additions and 2 deletions
|
@ -24,6 +24,9 @@
|
|||
#define MIDR_PN_MASK U(0xfff)
|
||||
#define MIDR_PN_SHIFT U(0x4)
|
||||
|
||||
/* Extracts the CPU part number from MIDR for checking CPU match */
|
||||
#define EXTRACT_PARTNUM(x) ((x >> MIDR_PN_SHIFT) & MIDR_PN_MASK)
|
||||
|
||||
/*******************************************************************************
|
||||
* MPIDR macros
|
||||
******************************************************************************/
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
#define ERRATA_CPUSPEC_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <arch.h>
|
||||
#include <arch_helpers.h>
|
||||
|
||||
#if __aarch64__
|
||||
|
@ -31,8 +32,6 @@
|
|||
/* Default values for unused memory in the array */
|
||||
#define UNDEF_ERRATA {UINT_MAX, UCHAR_MAX, UCHAR_MAX}
|
||||
|
||||
#define EXTRACT_PARTNUM(x) ((x >> MIDR_PN_SHIFT) & MIDR_PN_MASK)
|
||||
|
||||
#define RXPX_RANGE(x, y, z) (((x >= y) && (x <= z)) ? true : false)
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue