Patchwork [2/2] prep: Disable second IDE channel, as long as ISA IDE emulation doesn't support same irq for both channels

login
register
mail settings
Submitter Hervé Poussineau
Date Jan. 18, 2011, 9:43 p.m.
Message ID <1295387036-16961-2-git-send-email-hpoussin@reactos.org>
Download mbox | patch
Permalink /patch/79366/
State New
Headers show

Comments

Hervé Poussineau - Jan. 18, 2011, 9:43 p.m.
Cc: Andreas Färber <andreas.faerber@web.de>
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
---
 hw/ppc_prep.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Aurelien Jarno - Jan. 29, 2011, 3:03 p.m.
On Tue, Jan 18, 2011 at 10:43:56PM +0100, Hervé Poussineau wrote:
> Cc: Andreas Färber <andreas.faerber@web.de>
> Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
> ---
>  hw/ppc_prep.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, applied.

> diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c
> index 6b22122..6c1499a 100644
> --- a/hw/ppc_prep.c
> +++ b/hw/ppc_prep.c
> @@ -690,7 +690,7 @@ static void ppc_prep_init (ram_addr_t ram_size,
>          hd[i] = drive_get(IF_IDE, i / MAX_IDE_DEVS, i % MAX_IDE_DEVS);
>      }
>  
> -    for(i = 0; i < MAX_IDE_BUS; i++) {
> +    for(i = 0; i < 1/*MAX_IDE_BUS*/; i++) {
>          isa_ide_init(ide_iobase[i], ide_iobase2[i], ide_irq[i],
>                       hd[2 * i],
>  		     hd[2 * i + 1]);
> -- 
> 1.7.2.3
> 
> 
>

Patch

diff --git a/hw/ppc_prep.c b/hw/ppc_prep.c
index 6b22122..6c1499a 100644
--- a/hw/ppc_prep.c
+++ b/hw/ppc_prep.c
@@ -690,7 +690,7 @@  static void ppc_prep_init (ram_addr_t ram_size,
         hd[i] = drive_get(IF_IDE, i / MAX_IDE_DEVS, i % MAX_IDE_DEVS);
     }
 
-    for(i = 0; i < MAX_IDE_BUS; i++) {
+    for(i = 0; i < 1/*MAX_IDE_BUS*/; i++) {
         isa_ide_init(ide_iobase[i], ide_iobase2[i], ide_irq[i],
                      hd[2 * i],
 		     hd[2 * i + 1]);