diff options
| author | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 07:49:23 +0800 |
|---|---|---|
| committer | Richard Qin <richard.qin.x@gmail.com> | 2026-11-08 07:49:23 +0800 |
| commit | bb20921d00c770cb30bb85a300423d9062a94d91 (patch) | |
| tree | 047e61340edaa3c3d4bf0e9d01ba7786bfda5368 /mubios/core/post.c | |
| parent | 9bfc57c3684f7aebba0f6865a1ea248f576b947f (diff) | |
| download | rcc-project-bb20921d00c770cb30bb85a300423d9062a94d91.tar.gz rcc-project-bb20921d00c770cb30bb85a300423d9062a94d91.tar.xz | |
[mubios] Multi-sector INT 13h AH=42h
Signed-off-by: Richard Qin <richard.qin.x@gmail.com>
Diffstat (limited to 'mubios/core/post.c')
| -rw-r--r-- | mubios/core/post.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mubios/core/post.c b/mubios/core/post.c index 076d262..2af797b 100644 --- a/mubios/core/post.c +++ b/mubios/core/post.c @@ -40,7 +40,7 @@ post_main (void) u8 ata_status; mbr = (volatile u8 *)0x00007C00u; - ata_status = ata_read_sector28 (0, (u16 *)mbr); + ata_status = ata_read_sectors28 (0, (u16 *)mbr, 1); if (ata_status == 0 && mbr[0x01FE] == 0x55 && mbr[0x01FF] == 0xAA) serial_write ("mubios: MBR loaded\r\n"); |
