\r
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
Portions Copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>\r
+ Copyright (c) 2020, NUVIA Inc. All rights reserved.<BR>\r
\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
IN UINTN SetWayFormat\r
);\r
\r
+UINTN\r
+EFIAPI\r
+ArmReadIdAA64Pfr0 (\r
+ VOID\r
+ );\r
#endif // __AARCH64_LIB_H__\r
\r
# Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
# Copyright (c) 2011 - 2017, ARM Limited. All rights reserved.\r
# Copyright (c) 2016, Linaro Limited. All rights reserved.\r
+# Copyright (c) 2020, NUVIA Inc. All rights reserved.\r
#\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
ASM_FUNC(ArmEnableVFP)\r
// Check whether floating-point is implemented in the processor.\r
mov x1, x30 // Save LR\r
- bl ArmReadIdPfr0 // Read EL1 Processor Feature Register (PFR0)\r
+ bl ArmReadIdAA64Pfr0 // Read EL1 Processor Feature Register (PFR0)\r
mov x30, x1 // Restore LR\r
ubfx x0, x0, #16, #4 // Extract the FP bits 16:19\r
cmp x0, #0xF // Check if FP bits are '1111b',\r
ret\r
\r
\r
-ASM_FUNC(ArmReadIdPfr0)\r
+ASM_FUNC(ArmReadIdAA64Pfr0)\r
mrs x0, id_aa64pfr0_el1 // Read ID_AA64PFR0 Register\r
ret\r
\r