summaryrefslogtreecommitdiff
path: root/DuetPkg/CpuDxe
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-08-20 09:15:11 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2009-08-20 09:15:11 +0000
commit9811c39250d3598b02b7f39bbec5a51c803f8f6a (patch)
treed1d1f09931d578db6f2e3eb5592f105f656a9520 /DuetPkg/CpuDxe
parentf315cfa5b727b22486800a22dbe9362598a463c2 (diff)
downloadedk2-platforms-9811c39250d3598b02b7f39bbec5a51c803f8f6a.tar.xz
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
Diffstat (limited to 'DuetPkg/CpuDxe')
-rw-r--r--DuetPkg/CpuDxe/Ia32/CpuInterrupt.S10
-rwxr-xr-xDuetPkg/CpuDxe/X64/CpuInterrupt.S10
2 files changed, 10 insertions, 10 deletions
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)