Re: agp0 hang in 5.2.1-RELEASE

From: Lowell Gilbert <freebsd-current-local_at_be-well.ilk.org>
Date: 25 Mar 2004 20:39:16 -0500
> Which seems to work, once I added in the missing close-parenthesis in
> the if-condition.

Which would make the patch: 

--- agp_ali.c.orig      Tue Nov 11 11:49:18 2003
+++ agp_ali.c   Thu Mar 25 20:26:48 2004
_at__at_ -80,6 +80,8 _at__at_
 {
        const char *desc;
 
+       if (resource_disabled("agp", device_get_unit(dev)))
+               return (ENXIO);
        desc = agp_ali_match(dev);
        if (desc) {
                device_verbose(dev);
--- agp_amd.c.orig      Thu Mar 18 16:25:45 2004
+++ agp_amd.c   Thu Mar 25 20:27:01 2004
_at__at_ -207,6 +207,8 _at__at_
 {
        const char *desc;
 
+       if (resource_disabled("agp", device_get_unit(dev)))
+               return (ENXIO);
        desc = agp_amd_match(dev);
        if (desc) {
                device_verbose(dev);
--- agp_i810.c.orig     Thu Mar 18 16:25:45 2004
+++ agp_i810.c  Thu Mar 25 20:27:15 2004
_at__at_ -183,6 +183,8 _at__at_
 {
        const char *desc;
 
+       if (resource_disabled("agp", device_get_unit(dev)))
+               return (ENXIO);
        desc = agp_i810_match(dev);
        if (desc) {
                device_t bdev;
--- agp_intel.c.orig    Sun Mar 14 03:29:16 2004
+++ agp_intel.c Thu Mar 25 20:25:53 2004
_at__at_ -127,6 +127,8 _at__at_
 {
        const char *desc;
 
+       if (resource_disabled("agp", device_get_unit(dev)))
+               return (ENXIO);
        desc = agp_intel_match(dev);
        if (desc) {
                device_verbose(dev);
--- agp_nvidia.c.orig   Sat Aug 23 11:32:18 2003
+++ agp_nvidia.c        Thu Mar 25 20:27:31 2004
_at__at_ -116,6 +116,8 _at__at_
 {
        const char *desc;
 
+       if (resource_disabled("agp", device_get_unit(dev)))
+               return (ENXIO);
        desc = agp_nvidia_match(dev);
        if (desc) {
                device_verbose(dev);
--- agp_sis.c.orig      Thu Aug 21 23:13:20 2003
+++ agp_sis.c   Thu Mar 25 20:26:34 2004
_at__at_ -82,6 +82,8 _at__at_
 {
        const char *desc;
 
+       if (resource_disabled("agp", device_get_unit(dev)))
+               return (ENXIO);
        desc = agp_sis_match(dev);
        if (desc) {
                device_verbose(dev);
--- agp_via.c.orig      Thu Aug 21 23:13:20 2003
+++ agp_via.c   Thu Mar 25 20:26:21 2004
_at__at_ -90,6 +90,8 _at__at_
 {
        const char *desc;
 
+       if (resource_disabled("agp", device_get_unit(dev)))
+               return (ENXIO);
        desc = agp_via_match(dev);
        if (desc) {
                device_verbose(dev);
Received on Thu Mar 25 2004 - 16:39:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:49 UTC