Skip to content

Commit

Permalink
Rename the macros to extract a single arm64 ID field.
Browse files Browse the repository at this point in the history
Because of the previous naming scheme the old ID_AA64PFR0_EL1 macro
collided with a potential macro for the register of the same name. To fix
this collision rename these macros.

Sponsored by:	DARPA, AFRL
  • Loading branch information
zxombie committed Oct 30, 2019
1 parent 3d40147 commit d4cdc59
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion sys/arm64/arm64/elf32_machdep.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ elf32_arm_abi_supported(struct image_params *imgp)
const Elf32_Ehdr *hdr;

/* Check if we support AArch32 */
if (ID_AA64PFR0_EL0(READ_SPECIALREG(id_aa64pfr0_el1)) !=
if (ID_AA64PFR0_EL0_VAL(READ_SPECIALREG(id_aa64pfr0_el1)) !=
ID_AA64PFR0_EL0_64_32)
return (FALSE);

Expand Down
Loading

0 comments on commit d4cdc59

Please sign in to comment.