#include <AsmMacroIoLibV8.h>\r
#include <Chipset/AArch64.h>\r
\r
-#start of the code section\r
-.text\r
-.align 3\r
-\r
-GCC_ASM_EXPORT(SetupExceptionLevel1)\r
-GCC_ASM_EXPORT(SetupExceptionLevel2)\r
-\r
// Setup EL1 while in EL1\r
-ASM_PFX(SetupExceptionLevel1):\r
+ASM_FUNC(SetupExceptionLevel1)\r
mov x5, x30 // Save LR\r
\r
mov x0, #CPACR_CP_FULL_ACCESS\r
ret x5\r
\r
// Setup EL2 while in EL2\r
-ASM_PFX(SetupExceptionLevel2):\r
+ASM_FUNC(SetupExceptionLevel2)\r
msr sctlr_el2, xzr\r
mrs x0, hcr_el2 // Read EL2 Hypervisor configuration Register\r
\r