]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BootSector/start.S
Solve a wrong pointer reference in QueryVariableInfo().
[mirror_edk2.git] / DuetPkg / BootSector / start.S
index bb3195861130183b1f2b570c44264def63130028..b9a34db08168c4692a7da18c9a78447c1664b13a 100644 (file)
@@ -1,7 +1,7 @@
 #------------------------------------------------------------------------------\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
@@ -18,7 +18,7 @@
         .stack: \r
         .486p: \r
         .code16\r
-               \r
+    \r
 .equ                        FAT_DIRECTORY_ENTRY_SIZE, 0x020\r
 .equ                        FAT_DIRECTORY_ENTRY_SHIFT, 5\r
 .equ                        BLOCK_SIZE, 0x0200\r
 .equ                        BLOCK_SHIFT, 9\r
 \r
        .org 0x0\r
+\r
+.global _start\r
+_start:\r
+\r
 Ia32Jump: \r
   jmp   BootSectorEntryPoint  # JMP inst    - 3 bytes\r
   nop\r
@@ -446,7 +450,7 @@ Empty8042Loop:
 # data\r
 ##############################################################################\r
 \r
-        .align 0x2\r
+        .p2align 1\r
 \r
         gdtr:    .long  GDT_END - GDT_BASE - 1  # GDT limit \r
         .long 0                                 # (GDT base gets set above)\r
@@ -454,7 +458,7 @@ Empty8042Loop:
 #   global descriptor table (GDT)\r
 ##############################################################################\r
 \r
-        .align 0x2\r
+        .p2align 1\r
 \r
 GDT_BASE: \r
 # null descriptor\r
@@ -531,7 +535,7 @@ GDT_BASE:
 \r
 GDT_END: \r
 \r
-        .align 0x2\r
+        .p2align 1\r
 \r
 \r
 \r
@@ -547,7 +551,7 @@ idtr:  .long  IDT_END - IDT_BASE - 1 # IDT limit
 ##############################################################################\r
 \r
 #idt_tag db "IDT",0     \r
-        .align 0x2\r
+        .p2align 1\r
 \r
 IDT_BASE: \r
 # divide by zero (INT 0)\r
@@ -711,7 +715,7 @@ IDT_BASE:
         .word 0            # offset 31:16\r
 \r
 # 85 unspecified descriptors, First 12 of them are reserved, the rest are avail\r
-               .fill 85 * 8, 1, 0   # db (85 * 8) dup(0)\r
+    .fill 85 * 8, 1, 0   # db (85 * 8) dup(0)\r
 \r
 # IRQ 0 (System timer) - (INT 0x68)\r
 .equ                IRQ0_SEL, .-IDT_BASE\r
@@ -843,7 +847,7 @@ IDT_BASE:
 \r
 IDT_END: \r
 \r
-        .align 0x2\r
+        .p2align 1\r
 \r
 MemoryMapSize:  .long 0\r
 MemoryMap:  .long 0,0,0,0,0,0,0,0\r