diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-12-07 13:50:54 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-12-12 14:12:59 -0500 |
commit | 4c90a20f86a09ffdcecd9685f11f3fe2674b8b77 (patch) | |
tree | 7982abe752449000416b4c9b647f91dbab9111d5 /src/ata.c | |
parent | 0e6f6366bc1645c151811c575d667a7676c5d53f (diff) | |
download | seabios-hppa-4c90a20f86a09ffdcecd9685f11f3fe2674b8b77.zip seabios-hppa-4c90a20f86a09ffdcecd9685f11f3fe2674b8b77.tar.gz seabios-hppa-4c90a20f86a09ffdcecd9685f11f3fe2674b8b77.tar.bz2 |
Create separate IPL entry for each CD/DVD
Current code creates only one IPL entry of type IPL_TYPE_CDROM even if
there are more then one CDROM drive present. If CDROM that the entry
refers to is not bootable there is no way to retry boot from another
CDROM. Fix this by creating IPL entry for each CDROM drive found. First
CDROM will always be placed in IPL entry 3 for backwards compatibility.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'src/ata.c')
-rw-r--r-- | src/ata.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -782,8 +782,10 @@ init_drive_atapi(struct atadrive_s *dummy, u16 *buffer) dprintf(1, "%s\n", adrive_g->drive.desc); // fill cdidmap - if (iscd) + if (iscd) { map_cd_drive(&adrive_g->drive); + add_baid_cdrom(&adrive_g->drive); + } return adrive_g; } |