Parcourir la source

fix(mbr): read 128k

greatbridf il y a 2 ans
Parent
commit
148cec14b4
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      src/mbr.S

+ 6 - 0
src/mbr.S

@@ -13,6 +13,12 @@ mbr_start:
     movw %ax, %bp
     movw %ax, %sp
 
+# read the first 64k
+    call read_data
+
+# read the rest
+    addw $(0x100 * 16), read_data_segment
+    addl $(8 * 16), read_data_lba
     call read_data
 
 # loader start