summaryrefslogtreecommitdiff
path: root/src/kernel/files.c
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2019-12-27 19:52:17 -0500
committerBenji Dial <Benji3.141@gmail.com>2019-12-27 19:52:17 -0500
commitdbfa44db9cb2674e590c8c9d7bad2feace93fd44 (patch)
tree41d70ee646741a35adfc0e509153172c0d60b908 /src/kernel/files.c
parent7c7fd36bea1eac4d0fa7bd628a53fff7d2e60917 (diff)
downloadportland-os-dbfa44db9cb2674e590c8c9d7bad2feace93fd44.tar.gz
iso_9660_parse_ph
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;