PERFORCE change 92251 for review
Kip Macy
kmacy at FreeBSD.org
Wed Feb 22 21:49:16 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=92251
Change 92251 by kmacy at kmacy:freebsd7_xen3 on 2006/02/23 05:48:15
apply fix submitted by Tim Kuik to xenbus_client.t
apply fix for problem discovered by Arun Sharma
Affected files ...
.. //depot/projects/xen3/src/sys/dev/xen/xenbus/xenbus_client.c#3 edit
.. //depot/projects/xen3/src/sys/i386/i386/sys_machdep.c#4 edit
Differences ...
==== //depot/projects/xen3/src/sys/dev/xen/xenbus/xenbus_client.c#3 (text+ko) ====
@@ -218,7 +218,7 @@
int xenbus_grant_ring(struct xenbus_device *dev, unsigned long ring_mfn)
{
int err = gnttab_grant_foreign_access(dev->otherend_id, ring_mfn, 0);
- if (err != 0)
+ if (err < 0)
xenbus_dev_fatal(dev, err, "granting access to ring page");
return err;
}
==== //depot/projects/xen3/src/sys/i386/i386/sys_machdep.c#4 (text+ko) ====
@@ -183,7 +183,7 @@
#ifndef XEN
PCPU_GET(fsgs_gdt)[0] = sd;
#else
- sd.sd_lolimit = 0x0; /* < 4GB limit */
+ sd.sd_lolimit = 0xc3f0; /* < 4GB limit */
HYPERVISOR_update_descriptor(vtomach(&PCPU_GET(fsgs_gdt)[1]),
*(uint64_t *)&sd);
#endif
@@ -220,7 +220,7 @@
#ifndef XEN
PCPU_GET(fsgs_gdt)[1] = sd;
#else
- sd.sd_lolimit = 0x0; /* 4GB limit, wraps around */
+ sd.sd_lolimit = 0xc3f0; /* 4GB limit, wraps around */
HYPERVISOR_update_descriptor(vtomach(&PCPU_GET(fsgs_gdt)[1]),
*(uint64_t *)&sd);
#endif
More information about the p4-projects
mailing list