debuggers.hg

changeset 20913:8dcedf17b5b4

pv-on-hvm: Correct the order of the argument of out*()

The order of the argument of outl() is wrong.
The correct order is outl(value, port). This causes kernel panic.

And outw() is also similar.

Signed-off-by: KUWAMURA Shin'ya <kuwa@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jan 29 07:10:28 2010 +0000 (2010-01-29)
parents ebd2495ec073
children 2bc69db28153
files unmodified_drivers/linux-2.6/platform-pci/platform-pci.c
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c	Fri Jan 29 06:50:23 2010 +0000
     1.2 +++ b/unmodified_drivers/linux-2.6/platform-pci/platform-pci.c	Fri Jan 29 07:10:28 2010 +0000
     1.3 @@ -324,15 +324,15 @@ static int check_platform_magic(struct d
     1.4  
     1.5  	switch (protocol) {
     1.6  	case 1:
     1.7 -		outw(XEN_IOPORT_PRODNUM, XEN_IOPORT_LINUX_PRODNUM);
     1.8 -		outl(XEN_IOPORT_DRVVER, XEN_IOPORT_LINUX_DRVVER);
     1.9 +		outw(XEN_IOPORT_LINUX_PRODNUM, XEN_IOPORT_PRODNUM);
    1.10 +		outl(XEN_IOPORT_LINUX_DRVVER, XEN_IOPORT_DRVVER);
    1.11  		if (inw(XEN_IOPORT_MAGIC) != XEN_IOPORT_MAGIC_VAL) {
    1.12  			dev_err(dev, "blacklisted by host\n");
    1.13  			return -ENODEV;
    1.14  		}
    1.15  		/* Fall through */
    1.16  	case 0:
    1.17 -		outw(XEN_IOPORT_UNPLUG, 0xf);
    1.18 +		outw(0xf, XEN_IOPORT_UNPLUG);
    1.19  		break;
    1.20  	default:
    1.21  		err = "unknown I/O protocol version";