Explorar o código

fix(mbr): read 128k

greatbridf %!s(int64=2) %!d(string=hai) anos
pai
achega
148cec14b4
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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