]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BootSector/efi32.S
1. Remove .extern from GCC assembly.
[mirror_edk2.git] / DuetPkg / BootSector / efi32.S
index 11e53b248874f47ba4b6bddfd61e92e2d9f71b1c..d142624f0ff4d05b4a41c5c54e96fd2a49f5fa00 100644 (file)
@@ -30,7 +30,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 +53,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 +136,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    2(Idtr), %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