소스 검색

fix(mbr): read 128k

greatbridf 2 년 전
부모
커밋
148cec14b4
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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