]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BootSector/start16.S
Remove exit from batch file
[mirror_edk2.git] / DuetPkg / BootSector / start16.S
index b7c854b02ada87c881f1c4e10ad26b6369bdaff6..f0ff82a829a0e8cf46d7697650abb11b2810ccd0 100644 (file)
@@ -26,7 +26,9 @@
 .equ                        BLOCK_MASK,                 0x01ff\r
 .equ                        BLOCK_SHIFT,                9\r
 \r
-        .org 0x00\r
+        .org 0x00
+.global _start
+_start:\r
 Ia32Jump: \r
   jmp   BootSectorEntryPoint  # JMP inst    - 3 bytes\r
   nop\r
@@ -74,7 +76,7 @@ BootSectorEntryPoint:
 NoVarStore: \r
         pushw   %es\r
 # Set the 5th byte start @ 0:19000 to non-zero indicating we should init var store header in DxeIpl\r
-        movb    %al, %es:($4)\r
+        movb    %al, %es:4\r
         jmp     SaveVolumeId\r
 \r
 CheckVarStoreSize: \r
@@ -85,7 +87,7 @@ CheckVarStoreSize:
 \r
 LoadVarStore: \r
         movb    $0, %al\r
-        movb    %al, %es:($4)\r
+        movb    %al, %es:4\r
         movw    (%di), %cx\r
 #       ES:DI = 1500:0\r
         xorw    %di, %di\r
@@ -96,9 +98,9 @@ LoadVarStore:
 SaveVolumeId: \r
         popw    %es\r
         movw    VolId(%bp), %ax\r
-        movw    %ax, %es:($0)                       # Save Volume Id to 0:19000. we will find the correct volume according to this VolumeId\r
+        movw    %ax, %es:0                      # Save Volume Id to 0:19000. we will find the correct volume according to this VolumeId\r
         movw    VolId+2(%bp), %ax\r
-        movw    %ax, %es:($2)\r
+        movw    %ax, %es:2\r
 \r
 # Read Efildr\r
         popw    %cx\r
@@ -292,11 +294,11 @@ Halt:
 ErrorString: \r
         .byte 'S', 0x0c, 'E', 0x0c, 'r', 0x0c, 'r', 0x0c, 'o', 0x0c, 'r', 0x0c, '!', 0x0c\r
 \r
-        .org     0x01fa\r
+        # .org     0x01fa # Just for passing build.\r
 LBAOffsetForBootSector: \r
         .long   0x0\r
 \r
-        .org     0x01fe\r
+        # .org     0x01fe # Just for passing build.\r
         .word   0xaa55\r
 \r
 #******************************************************************************\r
@@ -309,7 +311,7 @@ LBAOffsetForBootSector:
 .equ                 WRITE_DATA_PORT_CMD,   0x0d1     # 8042 command to write the data port\r
 .equ                 ENABLE_A20_CMD,        0x0df     # 8042 command to enable A20\r
 \r
-        .org     0x0200\r
+        # .org     0x0200 # Just for passing build.\r
         jmp start\r
 Em64String: \r
         .byte 'E', 0x0c, 'm', 0x0c, '6', 0x0c, '4', 0x0c, 'T', 0x0c, ' ', 0x0c, 'U', 0x0c, 'n', 0x0c, 's', 0x0c, 'u', 0x0c, 'p', 0x0c, 'p', 0x0c, 'o', 0x0c, 'r', 0x0c, 't', 0x0c, 'e', 0x0c, 'd', 0x0c, '!', 0x0c\r
@@ -332,7 +334,7 @@ start:
 MemMapLoop: \r
         movl $0xe820, %eax\r
         movl $20, %ecx\r
-        movl 0x534d4150, %edx  # 0x534d4150  stands for 'SMAP'\r
+        movl $0x534d4150, %edx  # 0x534d4150  stands for 'SMAP'\r
         int $0x15\r
         jc  MemMapDone\r
         addl $20, %edi\r