From: James Mckenzie Date: Mon, 7 Sep 2009 15:30:09 +0000 (+0100) Subject: Allow boot from second cdrom:wq X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=71bc05a6fb3710a043705fbbcfe04ac5dd9c2244;p=xenclient%2Fxen-pq.git Allow boot from second cdrom:wq --- diff --git a/master/boot-second-cd b/master/boot-second-cd new file mode 100644 index 0000000..3a37ad7 --- /dev/null +++ b/master/boot-second-cd @@ -0,0 +1,43 @@ +diff --git a/tools/firmware/rombios/rombios.c b/tools/firmware/rombios/rombios.c +index bb1c8e7..3baf417 100644 +--- a/tools/firmware/rombios/rombios.c ++++ b/tools/firmware/rombios/rombios.c +@@ -960,7 +960,7 @@ void cdemu_init(); + Bit8u cdemu_isactive(); + Bit8u cdemu_emulated_drive(); + +-Bit16u cdrom_boot(); ++Bit16u cdrom_boot(Bit16u); + + #endif // BX_ELTORITO_BOOT + +@@ -3703,7 +3703,7 @@ static char eltorito[24]="EL TORITO SPECIFICATION"; + // Returns ah: emulated drive, al: error code + // + Bit16u +-cdrom_boot() ++cdrom_boot(Bit16u which) + { + Bit16u ebda_seg=read_word(0x0040,0x000E); + Bit8u atacmd[12], buffer[2048]; +@@ -3713,7 +3713,8 @@ cdrom_boot() + + // Find out the first cdrom + for (device=0; device