ia64/xen-unstable

view patches/linux-2.6.18/fix-ide-cd-pio-mode.patch @ 14445:cb1693873a7e

libxc: Explicitly reserve space for special pages in HVM memmap.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Mar 16 18:59:28 2007 +0000 (2007-03-16)
parents 3adf00179a63
children
line source
1 diff -pruN ../orig-linux-2.6.18/drivers/ide/ide-lib.c ./drivers/ide/ide-lib.c
2 --- ../orig-linux-2.6.18/drivers/ide/ide-lib.c 2006-09-20 04:42:06.000000000 +0100
3 +++ ./drivers/ide/ide-lib.c 2007-01-12 16:07:37.000000000 +0000
4 @@ -408,10 +408,10 @@ void ide_toggle_bounce(ide_drive_t *driv
5 {
6 u64 addr = BLK_BOUNCE_HIGH; /* dma64_addr_t */
8 - if (!PCI_DMA_BUS_IS_PHYS) {
9 - addr = BLK_BOUNCE_ANY;
10 - } else if (on && drive->media == ide_disk) {
11 - if (HWIF(drive)->pci_dev)
12 + if (on && drive->media == ide_disk) {
13 + if (!PCI_DMA_BUS_IS_PHYS)
14 + addr = BLK_BOUNCE_ANY;
15 + else if (HWIF(drive)->pci_dev)
16 addr = HWIF(drive)->pci_dev->dma_mask;
17 }