]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/PrePeiCore/AArch64/Helper.S
ArmPlatformPkg/PrePeiCore: switch to ASM_FUNC() asm macro
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / AArch64 / Helper.S
index 8e23b0389653d9efb9797c296f3649698301af24..5f35484b1259f8b85c370de2cde945db2b799c13 100644 (file)
 #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
@@ -31,7 +24,7 @@ ASM_PFX(SetupExceptionLevel1):
    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