]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/CpuDxe/Ia32/CpuInterrupt.S
Use .p2align directive instead of ambiguous .align directive.
[mirror_edk2.git] / DuetPkg / CpuDxe / Ia32 / CpuInterrupt.S
index 52b1f27a871fa2ed38a4a788a35a94780a93dbe0..350dfa02935259ed21712a0b19181b974e2dedfb 100644 (file)
@@ -78,7 +78,7 @@ ASM_PFX(InstallInterruptHandler):
     .long     commonIdtEntry - . - 4      #  offset to jump to\r
        .endm\r
 \r
-    .align 2\r
+    .p2align 1\r
        ASM_GLOBAL ASM_PFX(SystemExceptionHandler)\r
 ASM_PFX(SystemExceptionHandler):\r
 INT0:\r
@@ -418,7 +418,7 @@ ExceptionDone:
 #;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
 \r
        .data\r
-        .align 4\r
+        .p2align 2\r
 \r
 gdtr:  .short GDT_END - GDT_BASE - 1   # GDT limit\r
         .long 0                         # (GDT base gets set above)\r
@@ -426,7 +426,7 @@ gdtr:       .short GDT_END - GDT_BASE - 1   # GDT limit
 #   global descriptor table (GDT)\r
 #;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
 \r
-        .align 4\r
+        .p2align 2\r
 \r
 GDT_BASE:\r
 # null descriptor\r
@@ -503,7 +503,7 @@ SPARE5_SEL  = .-GDT_BASE
 \r
 GDT_END:\r
 \r
-        .align 4\r
+        .p2align 2\r
 \r
 \r
 \r
@@ -519,7 +519,7 @@ idtr:       .short IDT_END - IDT_BASE - 1   # IDT limit
 #;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;\r
 \r
 #idt_tag .byte "IDT",0     \r
-        .align 4\r
+        .p2align 2\r
 \r
 IDT_BASE:\r
 # divide by zero (INT 0)\r