The UEFI memory map is a bit vague about how to interpret theEFI_MEMORY_XP attribute when it is combined with EFI_MEMORY_RP and/orEFI_MEMORY_WP, which have retroactively been redefined as cacheabilityattributes rather than permission attributes.

So let's ignore EFI_MEMORY_XP if _RP and/or _WP are also set. In thiscase, it is likely that they are being used to describe the capabilityof the region (i.e., whether it has the controls to reconfigure it asnon-executable) rather than the nature of the contents of the region(i.e., whether it contains data that we will never attempt to execute)