HelenOS sources

MIDR_VARIANT_SHIFT  160 boot/arch/arm64/include/arch/regutils.h #define MIDR_VARIANT_MASK  (UWORD64(0xf) << MIDR_VARIANT_SHIFT)
MIDR_VARIANT_SHIFT  111 kernel/arch/arm32/src/cpu/cpu.c 	cpu->variant_num = (ident >> MIDR_VARIANT_SHIFT) & MIDR_VARIANT_MASK;
MIDR_VARIANT_SHIFT  160 kernel/arch/arm64/include/arch/regutils.h #define MIDR_VARIANT_MASK  (UWORD64(0xf) << MIDR_VARIANT_SHIFT)
MIDR_VARIANT_SHIFT   82 kernel/arch/arm64/src/cpu/cpu.c 	CPU->arch.variant = (midr & MIDR_VARIANT_MASK) >> MIDR_VARIANT_SHIFT;
MIDR_VARIANT_SHIFT  160 uspace/lib/c/arch/arm64/include/libarch/regutils.h #define MIDR_VARIANT_MASK  (UWORD64(0xf) << MIDR_VARIANT_SHIFT)
HelenOS homepage, sources at GitHub