]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/BootSector/bootsect.S
Remove exit from batch file
[mirror_edk2.git] / DuetPkg / BootSector / bootsect.S
index d576adb727e8e0c4f08ecb84888bbfc1a043b39f..62f50aca4945f0cc5a80505db20768a13d569531 100644 (file)
@@ -18,7 +18,7 @@
         #.MODEL small\r
         .stack: \r
         .486p: \r
-        .code\r
+        .code16\r
 \r
 .equ                      FAT_DIRECTORY_ENTRY_SIZE, 0x020\r
 .equ                      FAT_DIRECTORY_ENTRY_SHIFT, 5\r
@@ -65,7 +65,7 @@ BootSectorEntryPoint:
 # ****************************************************************************\r
 # Start Print\r
 # ****************************************************************************\r
-  leaw %cs:StartString, %si\r
+  movw $StartString, %si\r
   call PrintString\r
 \r
 # ****************************************************************************\r
@@ -261,7 +261,7 @@ NotFoundAll:
   jne  FoundEFILDR\r
 BadBootSector: \r
 DiskError: \r
-  leaw %cs:ErrorString, %si\r
+  movw $ErrorString, %si\r
   call PrintString\r
 Halt: \r
   jmp   Halt\r
@@ -275,7 +275,7 @@ ErrorString:
 # LBA Offset for BootSector, need patched by tool for HD boot.\r
 # ****************************************************************************\r
 \r
-  .org 0x01fa   # Comment it for pass build. Should optimise code size. \r
+  .org 0x01fa   # Comment it for pass build. Should optimise code size. \r
 LBAOffsetForBootSector: \r
   .long     0x0\r
 \r
@@ -283,7 +283,7 @@ LBAOffsetForBootSector:
 # Sector Signature\r
 # ****************************************************************************\r
 \r
-  .org 0x01fe    # Comment it for pass build.\r
+  .org 0x01fe    # Comment it for pass build.\r
 SectorSignature: \r
   .word     0xaa55      # Boot Sector Signature\r
 \r