diff options
author | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-26 14:41:56 +0000 |
---|---|---|
committer | klu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-02-26 14:41:56 +0000 |
commit | 20193e01ca7f2e20c8be6b412c8cf0a5132d1c1c (patch) | |
tree | 2ecb056a0b0cade715547533d16ff042bf07daa8 /DuetPkg/BootSector/bs32.S | |
parent | 0375ec8d8f643a6c8c3238f22157592b44c6dba2 (diff) | |
download | edk2-platforms-20193e01ca7f2e20c8be6b412c8cf0a5132d1c1c.tar.xz |
Should use code16 for 16-bit assembler, otherwise 32-bit prefix will be added
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7721 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/BootSector/bs32.S')
-rw-r--r-- | DuetPkg/BootSector/bs32.S | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/DuetPkg/BootSector/bs32.S b/DuetPkg/BootSector/bs32.S index 72fa21011b..5df6d6a521 100644 --- a/DuetPkg/BootSector/bs32.S +++ b/DuetPkg/BootSector/bs32.S @@ -16,10 +16,9 @@ #------------------------------------------------------------------------------
#.MODEL small
- #.stack:
- #.486p:
- .code16:
-.section .text + .stack:
+ .486p:
+ .code16
.equ FAT_DIRECTORY_ENTRY_SIZE, 0x0020
.equ FAT_DIRECTORY_ENTRY_SHIFT, 5
@@ -31,7 +30,7 @@ .equ LOADER_FILENAME_PART2, 0x30325244 # "DR20"
.equ LOADER_FILENAME_PART3, 0x20202030 # "0___"
- .org 0x00 + .org 0x0 .global _start _start:
Ia32Jump:
@@ -80,7 +79,7 @@ BootSectorEntryPoint: # ****************************************************************************
# Start Print
# ****************************************************************************
- leaw %cs:StartString, %si
+ movw $StartString, %si
call PrintString
# ****************************************************************************
@@ -283,7 +282,7 @@ NotFoundAll: jne FoundEFILDR
BadBootSector:
DiskError:
- leaw %cs:ErrorString, %si
+ movw $ErrorString, %si
call PrintString
Halt:
jmp Halt
@@ -297,7 +296,7 @@ ErrorString: # LBA Offset for BootSector, need patched by tool for HD boot.
# ****************************************************************************
- # .org 0x01fa # BUG_BUG
+ #.org 0x01fa
LBAOffsetForBootSector:
.long 0x0
@@ -305,7 +304,7 @@ LBAOffsetForBootSector: # Sector Signature
# ****************************************************************************
- # .org 0x01fe # BUG_BUG
+ #.org 0x01fe
SectorSignature:
.word 0xaa55 # Boot Sector Signature
|