#------------------------------------------------------------------------------\r
#*\r
-#* Copyright 2006 - 2007, Intel Corporation \r
-#* All rights reserved. This program and the accompanying materials \r
+#* Copyright (c) 2006 - 2007, Intel Corporation. All rights reserved.<BR>\r
+#* This program and the accompanying materials \r
#* are licensed and made available under the terms and conditions of the BSD License \r
#* which accompanies this distribution. The full text of the license may be found at \r
#* http://opensource.org/licenses/bsd-license.php \r
#.MODEL small\r
.stack: \r
.486p: \r
- .code: \r
+ .code16\r
\r
.equ FAT_DIRECTORY_ENTRY_SIZE, 0x020\r
.equ FAT_DIRECTORY_ENTRY_SHIFT, 5\r
.equ LOADER_FILENAME_PART2, 0x036315244 # "DR16"\r
.equ LOADER_FILENAME_PART3, 0x020202036 # "6___"\r
\r
- .org 0x0
-.global _start
+ .org 0x0\r
+.global _start\r
_start:\r
Ia32Jump: \r
jmp BootSectorEntryPoint # JMP inst - 3 bytes\r
FindEFILDR: \r
cmpl $LOADER_FILENAME_PART1, (%di) # Compare to "EFIL"\r
jne FindVARSTORE\r
- cmpl $LOADER_FILENAME_PART2, 4(%di) \r
+ cmpl $LOADER_FILENAME_PART2, 4(%di) \r
jne FindVARSTORE\r
cmpl $LOADER_FILENAME_PART3, 7(%di) \r
jne FindVARSTORE\r
# LBA Offset for BootSector, need patched by tool for HD boot.\r
# ****************************************************************************\r
\r
- # .org 0x01fa # Comment it for pass build. Should optimise code size. \r
+ .org 0x01fa\r
LBAOffsetForBootSector: \r
.long 0x0\r
\r
# Sector Signature\r
# ****************************************************************************\r
\r
- # .org 0x01fe # Comment it for pass build. Should optimise code size. \r
+ .org 0x01fe\r
SectorSignature: \r
.word 0xaa55 # Boot Sector Signature\r
\r