]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BootSector/efi64.S
DuetPkg BootSector: Clean up .S files for 64-bit Duet for GCC build.
[mirror_edk2.git] / DuetPkg / BootSector / efi64.S
index fe7a3647ad9efb493006aa56ac0b5043500211d4..ec6ad89761ea4a50e20b983bff45b407f7565fe7 100644 (file)
@@ -1,6 +1,6 @@
 #------------------------------------------------------------------------------\r
 #*\r
-#*   Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+#*   Copyright (c) 2006 - 2012, 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
@@ -24,6 +24,9 @@
         .code: \r
         .org 0x21000\r
 \r
+.global _start\r
+_start:\r
+\r
 .equ                 DEFAULT_HANDLER_SIZE, INT1 - INT0\r
 \r
 .macro jmpCommonIdtEntry  \r
@@ -1279,9 +1282,9 @@ looptop:
     andb    $0xf,%bl\r
     addb    $'0', %bl\r
     cmpb    $'9', %bl\r
-    jle     @f\r
+    jle     LN_C4\r
     addb    $7,%bl\r
-@@\r
+LN_C4\r
     movb %bl, (%edi)\r
     addl    $2,%edi\r
     loop    looptop\r
@@ -1300,10 +1303,10 @@ ClearScreen:
     movb    $0xc,%ah\r
     movl    $0xb8000,%edi\r
     movl    $80*24,%ecx\r
-LN_C4\r
+LN_C5\r
     movw    %ax, (%edi)\r
     addl    $2,%edi\r
-    loop    LN_C4\r
+    loop    LN_C5\r
     movl    $0xb8000,%edi\r
 \r
     popl    %ecx\r
@@ -1315,9 +1318,9 @@ A2C:
     andb    $0xf,%al\r
     addb    $'0', %al\r
     cmpb    $'9', %al\r
-    jle     @f\r
+    jle     LN_C6\r
     addb    $7,%al\r
-LN_C5\r
+LN_C6\r
     ret\r
 \r
 String1:            .asciz      "*** INT "\r