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
This commit is contained in:
qhuang8
2009-08-20 09:15:11 +00:00
parent f315cfa5b7
commit 9811c39250
10 changed files with 42 additions and 42 deletions

View File

@@ -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)