Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 27166 Details for
Bug 43630
[PATCH] xfree using kernel 2.6.3 un Ultra 5 (mach64) does not work
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
*UNTESTED* updated patch that shouldn't nuke 2.4/non-sparc attempt 2
xfree-4.3.99-pci-domains.patch (text/plain), 1.16 KB, created by
Ciaran McCreesh
on 2004-03-10 11:40:26 UTC
(
hide
)
Description:
*UNTESTED* updated patch that shouldn't nuke 2.4/non-sparc attempt 2
Filename:
MIME Type:
Creator:
Ciaran McCreesh
Created:
2004-03-10 11:40:26 UTC
Size:
1.16 KB
patch
obsolete
>--- xc/programs/Xserver/hw/xfree86/os-support/bus/linuxPci.c.orig 2004-03-07 18:40:27.165278000 +0000 >+++ xc/programs/Xserver/hw/xfree86/os-support/bus/linuxPci.c 2004-03-07 18:48:07.895278000 +0000 >@@ -104,6 +104,7 @@ > static int lbus,ldev,lfunc,fd = -1; > int bus, dev, func; > char file[32]; >+ struct stat ignored; > > bus = PCI_BUS_FROM_TAG(tag); > dev = PCI_DEV_FROM_TAG(tag); >@@ -111,12 +112,21 @@ > if (fd == -1 || bus != lbus || dev != ldev || func != lfunc) { > if (fd != -1) > close(fd); >- if (bus < 256) >- sprintf(file, "/proc/bus/pci/%02x/%02x.%1x", >- bus, dev, func); >- else >- sprintf(file, "/proc/bus/pci/%04x/%02x.%1x", >- bus, dev, func); >+ if (bus < 256) { >+ if (stat("/proc/bus/pci/00", &ignored) < 0) >+ sprintf(file, "/proc/bus/pci/0000:%02x/%02x.%1x", >+ bus, dev, func); >+ else >+ sprintf(file, "/proc/bus/pci/%02x/%02x.%1x", >+ bus, dev, func); >+ } else { >+ if (stat("/proc/bus/pci/00", &ignored) < 0) >+ sprintf(file, "/proc/bus/pci/0000:%04x/%02x.%1x", >+ bus, dev, func); >+ else >+ sprintf(file, "/proc/bus/pci/%04x/%02x.%1x", >+ bus, dev, func); >+ } > fd = open(file,O_RDWR); > lbus = bus; > ldev = dev;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 43630
:
26787
|
27127
| 27166