[SeaBIOS] [PATCH v2 4/4] ahci: set controller id
Gerd Hoffmann
kraxel at redhat.com
Thu Dec 9 08:39:48 CET 2010
Fill the controller id in the drive struct with the port number so we
get a sane boot menu ordering with multiple hard disks attached.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
src/ahci.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/ahci.c b/src/ahci.c
index 7abff75..5373e72 100644
--- a/src/ahci.c
+++ b/src/ahci.c
@@ -345,6 +345,7 @@ ahci_port_init(struct ahci_ctrl_s *ctrl, u32 pnr)
}
port->drive.type = DTYPE_AHCI;
+ port->drive.cntl_id = pnr;
port->drive.removable = (buffer[0] & 0x80) ? 1 : 0;
port->drive.desc = malloc_tmp(MAXDESCSIZE);
if (!port->drive.desc) {
--
1.7.1
More information about the SeaBIOS
mailing list