summaryrefslogtreecommitdiff
path: root/DuetPkg/BootSector/bs32.S
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-13 06:29:44 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2012-01-13 06:29:44 +0000
commite7c4ef5ed4a1b14c7514367a5a95e1d9c9e1f090 (patch)
treed0b162db1e2d4938028086b1ce93c96f5c58a835 /DuetPkg/BootSector/bs32.S
parente8ef42833f45752e7f41c6ad0925209fc36c16ed (diff)
downloadedk2-platforms-e7c4ef5ed4a1b14c7514367a5a95e1d9c9e1f090.tar.xz
DuetPkg BootSector: fix bugs in .S files so that 32-bit and 64-bit DUET can boot to Shell with boot sector binaries built by GCC.
There is also a bug in bs32.asm/bs32.S that the space between the code and the 0xAA55 ending signature is not enough to hold the 2 debug strings. It is fixed by shortening the strings. Signed-off-by: rsun3 Reviewed-by: niruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12930 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/BootSector/bs32.S')
-rw-r--r--DuetPkg/BootSector/bs32.S12
1 files changed, 6 insertions, 6 deletions
diff --git a/DuetPkg/BootSector/bs32.S b/DuetPkg/BootSector/bs32.S
index d768518e85..95424f3d69 100644
--- a/DuetPkg/BootSector/bs32.S
+++ b/DuetPkg/BootSector/bs32.S
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
#*
-#* Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>
+#* Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>
#* This program and the accompanying materials
#* are licensed and made available under the terms and conditions of the BSD License
#* which accompanies this distribution. The full text of the license may be found at
@@ -207,7 +207,7 @@ PrintString:
movw %ax, %es
movw $0x7c0, %ax
movw %ax, %ds
- movw $7, %cx
+ movw $6, %cx
movw $160, %di
rep
movsw
@@ -288,15 +288,15 @@ Halt:
jmp Halt
StartString:
- .byte 'B', 0x0c, 'S', 0x0c, 't', 0x0c, 'a', 0x0c, 'r', 0x0c, 't', 0x0c, '!', 0x0c
+ .byte 'B', 0x0c, 'S', 0x0c, 't', 0x0c, 'a', 0x0c, 'r', 0x0c, 't', 0x0c
ErrorString:
- .byte 'B', 0x0c, 'E', 0x0c, 'r', 0x0c, 'r', 0x0c, 'o', 0x0c, 'r', 0x0c, '!', 0x0c
+ .byte 'B', 0x0c, 'E', 0x0c, 'r', 0x0c, 'r', 0x0c, 'o', 0x0c, 'r', 0x0c
# ****************************************************************************
# LBA Offset for BootSector, need patched by tool for HD boot.
# ****************************************************************************
- #.org 0x01fa
+ .org 0x01fa
LBAOffsetForBootSector:
.long 0x0
@@ -304,7 +304,7 @@ LBAOffsetForBootSector:
# Sector Signature
# ****************************************************************************
- #.org 0x01fe
+ .org 0x01fe
SectorSignature:
.word 0xaa55 # Boot Sector Signature