summaryrefslogtreecommitdiff
path: root/DuetPkg/BootSector/bootsect.S
diff options
context:
space:
mode:
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-26 12:52:17 +0000
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>2009-02-26 12:52:17 +0000
commit57b6de773d78bf627f71c7e9ecfa2d00f6ca2281 (patch)
tree00e53ecbf4931e8a266761bcaf6ca6b235bdd80c /DuetPkg/BootSector/bootsect.S
parent3519b58b4e16aa78feddc31547a1d92a6e7bc6c5 (diff)
downloadedk2-platforms-57b6de773d78bf627f71c7e9ecfa2d00f6ca2281.tar.xz
in 16-bit code, cs:[] require prefix because sengment size is set 32 bits. so use $ to reference string tag directly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7719 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/BootSector/bootsect.S')
-rw-r--r--DuetPkg/BootSector/bootsect.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/DuetPkg/BootSector/bootsect.S b/DuetPkg/BootSector/bootsect.S
index d576adb727..2b82422f8c 100644
--- a/DuetPkg/BootSector/bootsect.S
+++ b/DuetPkg/BootSector/bootsect.S
@@ -18,7 +18,7 @@
#.MODEL small
.stack:
.486p:
- .code:
+ .code16:
.equ FAT_DIRECTORY_ENTRY_SIZE, 0x020
.equ FAT_DIRECTORY_ENTRY_SHIFT, 5
@@ -65,7 +65,7 @@ BootSectorEntryPoint:
# ****************************************************************************
# Start Print
# ****************************************************************************
- leaw %cs:StartString, %si
+ movw $StartString, %si
call PrintString
# ****************************************************************************
@@ -261,7 +261,7 @@ NotFoundAll:
jne FoundEFILDR
BadBootSector:
DiskError:
- leaw %cs:ErrorString, %si
+ movw $ErrorString, %si
call PrintString
Halt:
jmp Halt