Re: fix pnpinfo on arch=amd64

2010-10-25 Thread John Baldwin
On Saturday, October 23, 2010 8:22:48 pm Alexander Best wrote: this tiny patch will fix pnpinfo so it doesn't core dump (bus error) any longer on arch=amd64. This utility isn't really useful on amd64 though. No amd64 machines have ISA slots in which to place an ISA PnP adapter. -- John

Re: fix pnpinfo on arch=amd64

2010-10-25 Thread Erik Trulsson
On Mon, Oct 25, 2010 at 08:45:47AM -0400, John Baldwin wrote: On Saturday, October 23, 2010 8:22:48 pm Alexander Best wrote: this tiny patch will fix pnpinfo so it doesn't core dump (bus error) any longer on arch=amd64. This utility isn't really useful on amd64 though. No amd64 machines

Re: fix pnpinfo on arch=amd64

2010-10-25 Thread John Baldwin
On Monday, October 25, 2010 9:34:37 am Erik Trulsson wrote: On Mon, Oct 25, 2010 at 08:45:47AM -0400, John Baldwin wrote: On Saturday, October 23, 2010 8:22:48 pm Alexander Best wrote: this tiny patch will fix pnpinfo so it doesn't core dump (bus error) any longer on arch=amd64. This

Re: fix pnpinfo on arch=amd64

2010-10-25 Thread Alexander Best
On Sun Oct 24 10, Garrett Cooper wrote: On Sun, Oct 24, 2010 at 4:57 AM, Alexander Best arun...@freebsd.org wrote: On Sat Oct 23 10, Garrett Cooper wrote: On Sat, Oct 23, 2010 at 5:22 PM, Alexander Best arun...@freebsd.org wrote: this tiny patch will fix pnpinfo so it doesn't core dump

Re: fix pnpinfo on arch=amd64

2010-10-24 Thread Alexander Best
On Sat Oct 23 10, Garrett Cooper wrote: On Sat, Oct 23, 2010 at 5:22 PM, Alexander Best arun...@freebsd.org wrote: this tiny patch will fix pnpinfo so it doesn't core dump (bus error) any longer on arch=amd64. 1. I had to modify the Makefile to get it to work. probably because you built

Re: fix pnpinfo on arch=amd64

2010-10-24 Thread Garrett Cooper
On Sun, Oct 24, 2010 at 4:57 AM, Alexander Best arun...@freebsd.org wrote: On Sat Oct 23 10, Garrett Cooper wrote: On Sat, Oct 23, 2010 at 5:22 PM, Alexander Best arun...@freebsd.org wrote: this tiny patch will fix pnpinfo so it doesn't core dump (bus error) any longer on arch=amd64. 1. I

Re: fix pnpinfo on arch=amd64

2010-10-24 Thread Nathan Whitehorn
On 10/24/10 11:14, Garrett Cooper wrote: well on i386/amd (pc98?) you could use i386_get_ioperm(2) to check for proper io permissions. Yeah, and it's x86 specific. Kind of curious why there isn't a more generalized name for this API, but it appeared to be geared towards x86 (today,

fix pnpinfo on arch=amd64

2010-10-23 Thread Alexander Best
this tiny patch will fix pnpinfo so it doesn't core dump (bus error) any longer on arch=amd64. cheers. alex -- a13x diff --git a/contrib/pnpinfo/pnpinfo.c b/contrib/pnpinfo/pnpinfo.c index 790cfd8..c09f4ef 100644 --- a/contrib/pnpinfo/pnpinfo.c +++ b/contrib/pnpinfo/pnpinfo.c @@ -588,7 +588,7

Re: fix pnpinfo on arch=amd64

2010-10-23 Thread Garrett Cooper
On Sat, Oct 23, 2010 at 5:22 PM, Alexander Best arun...@freebsd.org wrote: this tiny patch will fix pnpinfo so it doesn't core dump (bus error) any longer on arch=amd64. 1. I had to modify the Makefile to get it to work. 2. FWIW, I don't there's really much point in adding a check for only x86