From 9811c39250d3598b02b7f39bbec5a51c803f8f6a Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Thu, 20 Aug 2009 09:15:11 +0000 Subject: Use .p2align directive instead of ambiguous .align directive. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9164 6f19259b-4bc3-4df7-8a09-765794883524 --- DuetPkg/BootSector/efi32.S | 2 +- DuetPkg/BootSector/efi64.S | 2 +- DuetPkg/BootSector/st16_64.S | 10 +++++----- DuetPkg/BootSector/st32_64.S | 10 +++++----- DuetPkg/BootSector/start.S | 10 +++++----- DuetPkg/BootSector/start16.S | 10 +++++----- DuetPkg/BootSector/start32.S | 10 +++++----- DuetPkg/BootSector/start64.S | 10 +++++----- DuetPkg/CpuDxe/Ia32/CpuInterrupt.S | 10 +++++----- DuetPkg/CpuDxe/X64/CpuInterrupt.S | 10 +++++----- 10 files changed, 42 insertions(+), 42 deletions(-) (limited to 'DuetPkg') diff --git a/DuetPkg/BootSector/efi32.S b/DuetPkg/BootSector/efi32.S index 5ec466c43e..f21ff84384 100644 --- a/DuetPkg/BootSector/efi32.S +++ b/DuetPkg/BootSector/efi32.S @@ -153,7 +153,7 @@ EfiLdrOffset: ret # db "**** DEFAULT IDT ENTRY ***",0 - .align 0x2 + .p2align 1 Halt: INT0: pushl $0x0 # push error code place holder on the stack diff --git a/DuetPkg/BootSector/efi64.S b/DuetPkg/BootSector/efi64.S index fcf785029f..57efe587e4 100644 --- a/DuetPkg/BootSector/efi64.S +++ b/DuetPkg/BootSector/efi64.S @@ -177,7 +177,7 @@ EfiLdrOffset: .byte 0xc3 # db "**** DEFAULT IDT ENTRY ***",0 - .align 0x2 + .p2align 1 Halt: INT0: pushl $0x0 # push error code place holder on the stack diff --git a/DuetPkg/BootSector/st16_64.S b/DuetPkg/BootSector/st16_64.S index d9d5d69600..d68613b1b6 100644 --- a/DuetPkg/BootSector/st16_64.S +++ b/DuetPkg/BootSector/st16_64.S @@ -580,7 +580,7 @@ Empty8042Loop: # data ############################################################################## - .align 0x2 + .p2align 1 gdtr: .long GDT_END - GDT_BASE - 1 # GDT limit .long 0 # (GDT base gets set above) @@ -588,7 +588,7 @@ Empty8042Loop: # global descriptor table (GDT) ############################################################################## - .align 0x2 + .p2align 1 GDT_BASE: # null descriptor @@ -678,7 +678,7 @@ GDT_BASE: GDT_END: - .align 0x2 + .p2align 1 @@ -695,7 +695,7 @@ idtr: .long IDT_END - IDT_BASE - 1 # IDT limit ############################################################################## #idt_tag db "IDT",0 - .align 0x2 + .p2align 1 IDT_BASE: @@ -1064,7 +1064,7 @@ IDT_BASE: IDT_END: - .align 0x2 + .p2align 1 MemoryMapSize: .long 0 MemoryMap: .long 0,0,0,0,0,0,0,0 diff --git a/DuetPkg/BootSector/st32_64.S b/DuetPkg/BootSector/st32_64.S index 6756a663db..747289b211 100644 --- a/DuetPkg/BootSector/st32_64.S +++ b/DuetPkg/BootSector/st32_64.S @@ -595,7 +595,7 @@ Empty8042Loop: # data ############################################################################## - .align 0x2 + .p2align 1 gdtr: .long GDT_END - GDT_BASE - 1 # GDT limit .long 0 # (GDT base gets set above) @@ -603,7 +603,7 @@ Empty8042Loop: # global descriptor table (GDT) ############################################################################## - .align 0x2 + .p2align 1 GDT_BASE: # null descriptor @@ -693,7 +693,7 @@ GDT_BASE: GDT_END: - .align 0x2 + .p2align 1 @@ -710,7 +710,7 @@ idtr: .long IDT_END - IDT_BASE - 1 # IDT limit ############################################################################## #idt_tag db "IDT",0 - .align 0x2 + .p2align 1 IDT_BASE: @@ -1079,7 +1079,7 @@ IDT_BASE: IDT_END: - .align 0x2 + .p2align 1 MemoryMapSize: .long 0 MemoryMap: .long 0,0,0,0,0,0,0,0 diff --git a/DuetPkg/BootSector/start.S b/DuetPkg/BootSector/start.S index 706def4929..177e9ae82e 100644 --- a/DuetPkg/BootSector/start.S +++ b/DuetPkg/BootSector/start.S @@ -450,7 +450,7 @@ Empty8042Loop: # data ############################################################################## - .align 0x2 + .p2align 1 gdtr: .long GDT_END - GDT_BASE - 1 # GDT limit .long 0 # (GDT base gets set above) @@ -458,7 +458,7 @@ Empty8042Loop: # global descriptor table (GDT) ############################################################################## - .align 0x2 + .p2align 1 GDT_BASE: # null descriptor @@ -535,7 +535,7 @@ GDT_BASE: GDT_END: - .align 0x2 + .p2align 1 @@ -551,7 +551,7 @@ idtr: .long IDT_END - IDT_BASE - 1 # IDT limit ############################################################################## #idt_tag db "IDT",0 - .align 0x2 + .p2align 1 IDT_BASE: # divide by zero (INT 0) @@ -847,7 +847,7 @@ IDT_BASE: IDT_END: - .align 0x2 + .p2align 1 MemoryMapSize: .long 0 MemoryMap: .long 0,0,0,0,0,0,0,0 diff --git a/DuetPkg/BootSector/start16.S b/DuetPkg/BootSector/start16.S index 13fefb2129..014ce8cdcd 100644 --- a/DuetPkg/BootSector/start16.S +++ b/DuetPkg/BootSector/start16.S @@ -444,7 +444,7 @@ Empty8042Loop: # data ############################################################################## - .align 0x2 + .p2align 1 gdtr: .word GDT_END - GDT_BASE - 1 # GDT limit .long 0 # (GDT base gets set above) @@ -452,7 +452,7 @@ gdtr: .word GDT_END - GDT_BASE - 1 # GDT limit # global descriptor table (GDT) ############################################################################## - .align 0x2 + .p2align 1 GDT_BASE: # null descriptor @@ -529,7 +529,7 @@ GDT_BASE: GDT_END: - .align 0x2 + .p2align 1 @@ -545,7 +545,7 @@ idtr: .word IDT_END - IDT_BASE - 1 # IDT limit ############################################################################## #idt_tag db "IDT",0 - .align 0x2 + .p2align 1 IDT_BASE: # divide by zero (INT 0) @@ -841,7 +841,7 @@ IDT_BASE: IDT_END: - .align 0x2 + .p2align 1 MemoryMapSize: .long 0 MemoryMap: .long 0,0,0,0,0,0,0,0 diff --git a/DuetPkg/BootSector/start32.S b/DuetPkg/BootSector/start32.S index c8faf266df..55b274b8df 100644 --- a/DuetPkg/BootSector/start32.S +++ b/DuetPkg/BootSector/start32.S @@ -459,7 +459,7 @@ Empty8042Loop: # data ############################################################################## - .align 0x2 + .p2align 1 gdtr: .word GDT_END - GDT_BASE - 1 .long 0 # (GDT base gets set above) @@ -467,7 +467,7 @@ gdtr: .word GDT_END - GDT_BASE - 1 # global descriptor table (GDT) ############################################################################## - .align 0x2 + .p2align 1 GDT_BASE: # null descriptor @@ -544,7 +544,7 @@ GDT_BASE: GDT_END: - .align 0x2 + .p2align 1 @@ -560,7 +560,7 @@ idtr: .word IDT_END - IDT_BASE - 1 ############################################################################## #idt_tag db "IDT",0 - .align 0x2 + .p2align 1 IDT_BASE: # divide by zero (INT 0) @@ -856,7 +856,7 @@ IDT_BASE: IDT_END: - .align 0x2 + .p2align 1 MemoryMapSize: .long 0 MemoryMap: .long 0,0,0,0,0,0,0,0 diff --git a/DuetPkg/BootSector/start64.S b/DuetPkg/BootSector/start64.S index 7787adfb5d..39e5869fe2 100644 --- a/DuetPkg/BootSector/start64.S +++ b/DuetPkg/BootSector/start64.S @@ -587,7 +587,7 @@ Empty8042Loop: # data ############################################################################## - .align 0x2 + .p2align 1 gdtr: .long GDT_END - GDT_BASE - 1 # GDT limit .long 0 # (GDT base gets set above) @@ -595,7 +595,7 @@ Empty8042Loop: # global descriptor table (GDT) ############################################################################## - .align 0x2 + .p2align 1 GDT_BASE: # null descriptor @@ -685,7 +685,7 @@ GDT_BASE: GDT_END: - .align 0x2 + .p2align 1 @@ -702,7 +702,7 @@ idtr: .long IDT_END - IDT_BASE - 1 # IDT limit ############################################################################## #idt_tag db "IDT",0 - .align 0x2 + .p2align 1 IDT_BASE: @@ -1071,7 +1071,7 @@ IDT_BASE: IDT_END: - .align 0x2 + .p2align 1 MemoryMapSize: .long 0 MemoryMap: .long 0,0,0,0,0,0,0,0 diff --git a/DuetPkg/CpuDxe/Ia32/CpuInterrupt.S b/DuetPkg/CpuDxe/Ia32/CpuInterrupt.S index 52b1f27a87..350dfa0293 100644 --- a/DuetPkg/CpuDxe/Ia32/CpuInterrupt.S +++ b/DuetPkg/CpuDxe/Ia32/CpuInterrupt.S @@ -78,7 +78,7 @@ ASM_PFX(InstallInterruptHandler): .long commonIdtEntry - . - 4 # offset to jump to .endm - .align 2 + .p2align 1 ASM_GLOBAL ASM_PFX(SystemExceptionHandler) ASM_PFX(SystemExceptionHandler): INT0: @@ -418,7 +418,7 @@ ExceptionDone: #;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; .data - .align 4 + .p2align 2 gdtr: .short GDT_END - GDT_BASE - 1 # GDT limit .long 0 # (GDT base gets set above) @@ -426,7 +426,7 @@ gdtr: .short GDT_END - GDT_BASE - 1 # GDT limit # global descriptor table (GDT) #;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - .align 4 + .p2align 2 GDT_BASE: # null descriptor @@ -503,7 +503,7 @@ SPARE5_SEL = .-GDT_BASE GDT_END: - .align 4 + .p2align 2 @@ -519,7 +519,7 @@ idtr: .short IDT_END - IDT_BASE - 1 # IDT limit #;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; #idt_tag .byte "IDT",0 - .align 4 + .p2align 2 IDT_BASE: # divide by zero (INT 0) diff --git a/DuetPkg/CpuDxe/X64/CpuInterrupt.S b/DuetPkg/CpuDxe/X64/CpuInterrupt.S index 94559eea1b..1b350309d0 100755 --- a/DuetPkg/CpuDxe/X64/CpuInterrupt.S +++ b/DuetPkg/CpuDxe/X64/CpuInterrupt.S @@ -83,7 +83,7 @@ ASM_PFX(InstallInterruptHandler): .long commonIdtEntry - . - 4 # offset to jump to .endm - .align 2 + .p2align 1 ASM_GLOBAL ASM_PFX(SystemExceptionHandler) ASM_PFX(SystemExceptionHandler): INT0: @@ -453,7 +453,7 @@ ExceptionDone: ############################################################################## .data - .align 0x10 + .p2align 4 gdtr: .short GDT_END - GDT_BASE - 1 # GDT limit .quad 0 # (GDT base gets set above) @@ -461,7 +461,7 @@ gdtr: .short GDT_END - GDT_BASE - 1 # GDT limit # global descriptor table (GDT) ############################################################################## - .align 0x10 + .p2align 4 GDT_BASE: # null descriptor @@ -538,7 +538,7 @@ SPARE5_SEL = .-GDT_BASE GDT_END: - .align 0x4 + .p2align 2 @@ -554,7 +554,7 @@ idtr: .short IDT_END - IDT_BASE - 1 # IDT limit ############################################################################## #idt_tag .byte "IDT",0 - .align 0x4 + .p2align 2 IDT_BASE: # divide by zero (INT 0) -- cgit v1.2.3