[SeaBIOS] [PATCH 2/9] Add BAID for ahci cdrom.

Gleb Natapov gleb at redhat.com
Thu Dec 23 10:29:36 CET 2010


Signed-off-by: Gleb Natapov <gleb at redhat.com>
---
 src/ahci.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/ahci.c b/src/ahci.c
index e2b2dbf..70c0f1c 100644
--- a/src/ahci.c
+++ b/src/ahci.c
@@ -395,8 +395,10 @@ ahci_port_init(struct ahci_ctrl_s *ctrl, u32 pnr)
                  , (iscd ? "DVD/CD" : "Device"));
 
         // fill cdidmap
-        if (iscd)
+        if (iscd) {
             map_cd_drive(&port->drive);
+            add_baid_cdrom(&port->drive);
+	}
     }
     dprintf(1, "%s\n", port->drive.desc);
 
-- 
1.7.2.3




More information about the SeaBIOS mailing list