]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BootSector/start.S
Use .p2align directive instead of ambiguous .align directive.
[mirror_edk2.git] / DuetPkg / BootSector / start.S
index 23cfbc05c2ca2b50e139682e6ad062920b40ea1a..177e9ae82eb2e3cf3c6d966bad71871a2e470782 100644 (file)
 .equ                        BLOCK_MASK, 0x01ff\r
 .equ                        BLOCK_SHIFT, 9\r
 \r
-       .org 0x0
-
+       .org 0x0\r
+\r
 .global _start\r
-_start:
+_start:\r
 \r
 Ia32Jump: \r
   jmp   BootSectorEntryPoint  # JMP inst    - 3 bytes\r
@@ -450,7 +450,7 @@ Empty8042Loop:
 # data\r
 ##############################################################################\r
 \r
-        .align 0x2\r
+        .p2align 1\r
 \r
         gdtr:    .long  GDT_END - GDT_BASE - 1  # GDT limit \r
         .long 0                                 # (GDT base gets set above)\r
@@ -458,7 +458,7 @@ Empty8042Loop:
 #   global descriptor table (GDT)\r
 ##############################################################################\r
 \r
-        .align 0x2\r
+        .p2align 1\r
 \r
 GDT_BASE: \r
 # null descriptor\r
@@ -535,7 +535,7 @@ GDT_BASE:
 \r
 GDT_END: \r
 \r
-        .align 0x2\r
+        .p2align 1\r
 \r
 \r
 \r
@@ -551,7 +551,7 @@ idtr:  .long  IDT_END - IDT_BASE - 1 # IDT limit
 ##############################################################################\r
 \r
 #idt_tag db "IDT",0     \r
-        .align 0x2\r
+        .p2align 1\r
 \r
 IDT_BASE: \r
 # divide by zero (INT 0)\r
@@ -847,7 +847,7 @@ IDT_BASE:
 \r
 IDT_END: \r
 \r
-        .align 0x2\r
+        .p2align 1\r
 \r
 MemoryMapSize:  .long 0\r
 MemoryMap:  .long 0,0,0,0,0,0,0,0\r