46static inline arm_release_id arm_errata_get_processor_release(
void)
48 const uint32_t MIDR = arm_cp15_get_id_code();
49 const uint8_t REVISION = (MIDR & 0xF00000U) >> 20;
50 const uint8_t PATCH_LEVEL = (MIDR & 0xFU);
52 return ARM_RELEASE_ID_FROM_NUMBER_AND_PATCH_LEVEL(
58static inline bool arm_errata_is_applicable_processor_errata_764369(
void)
61 const arm_release_id RELEASE = arm_errata_get_processor_release();
62 bool is_applicable =
false;
75 case ARM_RELEASE_ID_R4_P1:
76 case ARM_RELEASE_ID_R4_P4:
77 case ARM_RELEASE_ID_R3_P0:
78 case ARM_RELEASE_ID_R2_P10:
79 case ARM_RELEASE_ID_R2_P8:
80 case ARM_RELEASE_ID_R2_P6:
81 case ARM_RELEASE_ID_R2_P4:
82 case ARM_RELEASE_ID_R2_P3:
83 case ARM_RELEASE_ID_R2_P2:
84 case ARM_RELEASE_ID_R2_P0:
88 is_applicable =
false;
98static inline bool arm_errata_is_applicable_processor_errata_775420(
void)
100 const arm_release_id RELEASE = arm_errata_get_processor_release();
101 bool is_applicable =
false;
114 case ARM_RELEASE_ID_R2_P10:
115 case ARM_RELEASE_ID_R2_P8:
116 case ARM_RELEASE_ID_R2_P6:
117 case ARM_RELEASE_ID_R2_P4:
118 case ARM_RELEASE_ID_R2_P3:
119 case ARM_RELEASE_ID_R2_P2:
120 is_applicable =
true;
123 is_applicable =
false;
127 return is_applicable;
ARM co-processor 15 (CP15) API.
Create #defines for release IDs.