summaryrefslogtreecommitdiff
path: root/src/kernel/files.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/files.c')
-rw-r--r--src/kernel/files.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/files.c b/src/kernel/files.c
index 8064518..9747688 100644
--- a/src/kernel/files.c
+++ b/src/kernel/files.c
@@ -27,7 +27,7 @@ bool (*const parse_pts[N_PT_FORMATS])(uint8_t dn, uint8_t *buffer) = {
//&mbr_parse_pt
};
-bool (*const parse_phs[N_FS_FORMATS])(uint8_t dn, uint32_t sector, uint8_t *buffer) = {
+bool (*const parse_phs[N_FS_FORMATS])(uint8_t dn, uint8_t pn, uint32_t sector, uint8_t *buffer) = {
&iso_9660_parse_ph
};
@@ -90,7 +90,7 @@ void detect_disk_parts(uint8_t drive) {
update_status(dn);
if (drives[dn].flags & (PRESENT | DISK_IN)) {
/*ISO 9660 often comes with a dummy MBR*/
- if (iso_9660_parse_ph(dn, 0, buffer)) {
+ if (iso_9660_parse_ph(dn, 0, 0, buffer)) {
part_info[dn].format = DIRECT;
part_info[dn].n_partitions = 1;
return;
@@ -99,7 +99,7 @@ void detect_disk_parts(uint8_t drive) {
if (parse_pts[ptt](dn, buffer))
return;
for (uint8_t fst = 0; fst < N_FS_FORMATS; ++fst)
- if (parse_phs[fst](dn, 0, buffer)) {
+ if (parse_phs[fst](dn, 0, 0, buffer)) {
part_info[dn].format = DIRECT;
part_info[dn].n_partitions = 1;
return;