summaryrefslogtreecommitdiffstats
path: root/sys/boot/powerpc/ps3/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/powerpc/ps3/main.c')
-rw-r--r--sys/boot/powerpc/ps3/main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/boot/powerpc/ps3/main.c b/sys/boot/powerpc/ps3/main.c
index db808ad..64bd7e9 100644
--- a/sys/boot/powerpc/ps3/main.c
+++ b/sys/boot/powerpc/ps3/main.c
@@ -92,11 +92,17 @@ main(void)
}
}
- printf("\nDevice: %s\n", devsw[i]->dv_name);
-
currdev.d_dev = devsw[i];
currdev.d_type = currdev.d_dev->dv_type;
+ if (strcmp(devsw[i]->dv_name, "cd") == 0) {
+ f.f_devdata = &currdev;
+ currdev.d_unit = 0;
+
+ if (devsw[i]->dv_open(&f, &currdev) == 0)
+ break;
+ }
+
if (strcmp(devsw[i]->dv_name, "disk") == 0) {
f.f_devdata = &currdev;
currdev.d_unit = 3;
@@ -113,6 +119,8 @@ main(void)
if (devsw[i] == NULL)
panic("No boot device found!");
+ else
+ printf("Boot device: %s\n", devsw[i]->dv_name);
/*
* Get timebase at boot.
OpenPOWER on IntegriCloud