\r
Copyright (c) 2009, Hewlett-Packard Company. All rights reserved.<BR>\r
Portions copyright (c) 2010, Apple Inc. All rights reserved.<BR>\r
-Portions copyright (c) 2011-2013, ARM Ltd. All rights reserved.<BR>\r
+Portions copyright (c) 2011-2021, Arm Limited. All rights reserved.<BR>\r
Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
ArmAttributes |= TT_AF;\r
\r
// Determine protection attributes\r
- if (EfiAttributes & EFI_MEMORY_RO) {\r
+ if ((EfiAttributes & EFI_MEMORY_RO) != 0) {\r
ArmAttributes |= TT_AP_RO_RO;\r
}\r
\r
// Process eXecute Never attribute\r
- if (EfiAttributes & EFI_MEMORY_XP) {\r
+ if ((EfiAttributes & EFI_MEMORY_XP) != 0) {\r
ArmAttributes |= TT_PXN_MASK;\r
}\r
\r