]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BootSector/efi32.S
fixed operation of GetFirst and GetNext for files...
[mirror_edk2.git] / DuetPkg / BootSector / efi32.S
index a9f100d47b86ddb6ac6bc669fa39c387449031db..a017cb1cf6532807330efc2d3d89427b4c023bee 100644 (file)
 # Now in 32-bit protected mode.\r
 ##############################################################################\r
 \r
-        .org 0x21000\r
+        .org 0x21000
+
+.global _start
+_start:
 \r
 .equ                 DEFAULT_HANDLER_SIZE, INT1 - INT0\r
 \r
@@ -30,7 +33,7 @@
     #                          be done to maintain the consistency of the size\r
     #                          of entry points...\r
     .byte   0xe9                        # jmp 16 bit relative\r
-    .long      commonIdtEntry - . - 4  # A problem     \r
+    .long      commonIdtEntry - . - 4   # offset to jump to     \r
 .endm\r
 \r
 Start:  \r
@@ -53,7 +56,7 @@ Start:
     movl    (Idtr + 2), %esi\r
     movl    (%esi), %edi\r
 \r
-LOOP_1:                                             # loop through all IDT entries exception handlers and initialize to default handler\r
+LOOP_1:                                         # loop through all IDT entries exception handlers and initialize to default handler\r
     movw    %bx, (%edi)                         # write bits 15..0 of offset\r
     movw    $0x20, 2(%edi)                      # SYS_CODE_SEL from GDT\r
     movw    $(0x0e00 | 0x8000), 4(%edi)                # type = 386 interrupt gate, present\r
@@ -136,9 +139,9 @@ SectionLoop:
     cmpw    $0, %bx\r
     jne     SectionLoop\r
 \r
-    movzwl  (Idtr), %eax                  # get size of IDT\r
+    movzwl  (Idtr), %eax                # get size of IDT\r
     incl    %eax\r
-    addl    (Idtr + 2), %eax             # add to base of IDT to get location of memory map... \r
+    addl    (Idtr + 2), %eax            # add to base of IDT to get location of memory map... \r
     pushl   %eax                        # push memory map location on stack for call to EFILDR...\r
 \r
     pushl   %eax                        # push return address (useless, just for stack balance)\r