]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Library/SemihostLib/Arm/GccSemihost.S
ArmPkg/SemihostLib: switch to ASM_FUNC() asm macro
[mirror_edk2.git] / ArmPkg / Library / SemihostLib / Arm / GccSemihost.S
index c9d13183f61ea94cd10d2faf036ba8602c50c66b..770e512cfbca9cd8e53af80bbdf3bac70c7db56b 100644 (file)
 #\r
 #------------------------------------------------------------------------------\r
 \r
 #\r
 #------------------------------------------------------------------------------\r
 \r
-.text\r
-.align 2\r
-\r
-.globl ASM_PFX(GccSemihostCall)\r
-INTERWORK_FUNC(GccSemihostCall)\r
+#include <AsmMacroIoLib.h>\r
 \r
 /*\r
   Semihosting operation request mechanism\r
 \r
 /*\r
   Semihosting operation request mechanism\r
@@ -32,7 +28,7 @@ INTERWORK_FUNC(GccSemihostCall)
        the svc lr register. That happens to be the one we are using, so we must\r
        save it or we will not be able to return.\r
  */\r
        the svc lr register. That happens to be the one we are using, so we must\r
        save it or we will not be able to return.\r
  */\r
-ASM_PFX(GccSemihostCall):\r
+ASM_FUNC(GccSemihostCall)\r
   stmfd   sp!, {lr}\r
   svc     #0x123456\r
   ldmfd   sp!, {lr}\r
   stmfd   sp!, {lr}\r
   svc     #0x123456\r
   ldmfd   sp!, {lr}\r