diff options
Diffstat (limited to 'bootloader/ipod.c')
-rw-r--r-- | bootloader/ipod.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bootloader/ipod.c b/bootloader/ipod.c index b2d4532168..8580886ce4 100644 --- a/bootloader/ipod.c +++ b/bootloader/ipod.c | |||
@@ -33,6 +33,7 @@ | |||
33 | #include "../kernel-internal.h" | 33 | #include "../kernel-internal.h" |
34 | #include "ata.h" | 34 | #include "ata.h" |
35 | #include "fat.h" | 35 | #include "fat.h" |
36 | #include "file_internal.h" | ||
36 | #include "disk.h" | 37 | #include "disk.h" |
37 | #include "font.h" | 38 | #include "font.h" |
38 | #include "adc.h" | 39 | #include "adc.h" |
@@ -295,7 +296,7 @@ void* main(void) | |||
295 | int rc; | 296 | int rc; |
296 | bool haveramos; | 297 | bool haveramos; |
297 | bool button_was_held; | 298 | bool button_was_held; |
298 | struct partinfo* pinfo; | 299 | struct partinfo pinfo; |
299 | unsigned short* identify_info; | 300 | unsigned short* identify_info; |
300 | 301 | ||
301 | /* Check the button hold status as soon as possible - to | 302 | /* Check the button hold status as soon as possible - to |
@@ -353,7 +354,8 @@ void* main(void) | |||
353 | printf("ATA: %d", i); | 354 | printf("ATA: %d", i); |
354 | } | 355 | } |
355 | 356 | ||
356 | disk_init(); | 357 | filesystem_init(); |
358 | |||
357 | rc = disk_mount_all(); | 359 | rc = disk_mount_all(); |
358 | if (rc<=0) | 360 | if (rc<=0) |
359 | { | 361 | { |
@@ -361,9 +363,9 @@ void* main(void) | |||
361 | fatal_error(); | 363 | fatal_error(); |
362 | } | 364 | } |
363 | 365 | ||
364 | pinfo = disk_partinfo(1); | 366 | disk_partinfo(1, &pinfo); |
365 | printf("Partition 1: 0x%02x %ld sectors", | 367 | printf("Partition 1: 0x%02x %ld sectors", |
366 | pinfo->type, pinfo->size); | 368 | pinfo.type, pinfo.size); |
367 | 369 | ||
368 | if (button_was_held || (btn==BUTTON_MENU)) { | 370 | if (button_was_held || (btn==BUTTON_MENU)) { |
369 | /* If either the hold switch was on, or the Menu button was held, then | 371 | /* If either the hold switch was on, or the Menu button was held, then |