summaryrefslogtreecommitdiff
path: root/DuetPkg/BootSector
diff options
context:
space:
mode:
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-24 02:07:25 +0000
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>2011-11-24 02:07:25 +0000
commit697ecfd313e6c21a7d01a9eec618174cc4136fb8 (patch)
treeff973e5220f94498a72fe6f7cf014206b40ef855 /DuetPkg/BootSector
parent24d63167cdbdb529ca71d72fa152099e3e3ee0a1 (diff)
downloadedk2-platforms-697ecfd313e6c21a7d01a9eec618174cc4136fb8.tar.xz
DuetPkg BootSector: Add missing .code16 directive into start16.S/start32.S/Gpt.S/Mbr.S.
Signed-off-by: rsun3 Reviewed-by: niruiyu git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12773 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'DuetPkg/BootSector')
-rw-r--r--DuetPkg/BootSector/Gpt.S4
-rw-r--r--DuetPkg/BootSector/Mbr.S4
-rw-r--r--DuetPkg/BootSector/start16.S2
-rw-r--r--DuetPkg/BootSector/start32.S2
4 files changed, 7 insertions, 5 deletions
diff --git a/DuetPkg/BootSector/Gpt.S b/DuetPkg/BootSector/Gpt.S
index c8b155edcb..821ca846f0 100644
--- a/DuetPkg/BootSector/Gpt.S
+++ b/DuetPkg/BootSector/Gpt.S
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
#*
-#* Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>
+#* Copyright (c) 2006 - 2011, 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
@@ -19,7 +19,7 @@
# .dosseg
.stack:
.486p:
- .code:
+ .code16
.equ BLOCK_SIZE, 0x0200
.equ BLOCK_MASK, 0x01ff
diff --git a/DuetPkg/BootSector/Mbr.S b/DuetPkg/BootSector/Mbr.S
index f24c5c2951..a1ebe06ca5 100644
--- a/DuetPkg/BootSector/Mbr.S
+++ b/DuetPkg/BootSector/Mbr.S
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
#*
-#* Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>
+#* Copyright (c) 2006 - 2011, 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
@@ -15,6 +15,8 @@
#*
#------------------------------------------------------------------------------
+ .code16
+
.equ BLOCK_SIZE, 0x0200
.equ BLOCK_MASK, 0x01ff
.equ BLOCK_SHIFT, 9
diff --git a/DuetPkg/BootSector/start16.S b/DuetPkg/BootSector/start16.S
index 053a0eeb91..a4cb151c77 100644
--- a/DuetPkg/BootSector/start16.S
+++ b/DuetPkg/BootSector/start16.S
@@ -18,7 +18,7 @@
#.MODEL small
.stack:
.486p:
- .code:
+ .code16
.equ FAT_DIRECTORY_ENTRY_SIZE, 0x0020
.equ FAT_DIRECTORY_ENTRY_SHIFT, 5
diff --git a/DuetPkg/BootSector/start32.S b/DuetPkg/BootSector/start32.S
index 6ce225612f..5296414f2e 100644
--- a/DuetPkg/BootSector/start32.S
+++ b/DuetPkg/BootSector/start32.S
@@ -18,7 +18,7 @@
#.MODEL small
.stack:
.486p:
- .code:
+ .code16
.equ FAT_DIRECTORY_ENTRY_SIZE, 0x020
.equ FAT_DIRECTORY_ENTRY_SHIFT, 5