summaryrefslogtreecommitdiff
path: root/DuetPkg
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
parent24d63167cdbdb529ca71d72fa152099e3e3ee0a1 (diff)
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')
-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 c8b155edc..821ca846f 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 f24c5c295..a1ebe06ca 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 053a0eeb9..a4cb151c7 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 6ce225612..5296414f2 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