* isapnp...
@ 1997-11-13 21:09 nm
0 siblings, 0 replies; 2+ messages in thread
From: nm @ 1997-11-13 21:09 UTC (permalink / raw)
maybe im an idiot here but i havnt been able to
get pnpdump of the isapnptools to work, heres
some info on how the compile of isapnptools here
went...
[root@penfold isapnptools-1.10.orig]# make
cc -O2 -Wall -DREALTIME -DNEEDSETSCHEDULER -DNEEDNANOSLEEP -c pnpdump.c
-o pn
pdump.o
cc pnpdump.o -o pnpdump
flex -i -t isapnp.y > isapnp.c
cc -O2 -Wall -DREALTIME -DNEEDSETSCHEDULER -DNEEDNANOSLEEP -c isapnp.c
-o isa
pnp.o
isapnp.y:974: warning: prototype for `yywrap' follows
isapnp.y:86: warning: non-prototype definition here
isapnp.y:1414: warning: `yyunput' defined but not used
cc isapnp.o -o isapnp
[root@penfold isapnptools-1.10.orig]#
now when i run pnpdump here is what happens
[root@penfold isapnptools-1.10.orig]# pnpdump
Unable to get io permission for WRITE_DATA: Bad address
[root@penfold isapnptools-1.10.orig]#
btw this is redhat4.2 on an axppci33 with 2.0.30
the only isa card is a soundblaster 16 pnp
any ideas
nick
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: isapnp...
[not found] <3.0.2.32.19971113160919.00c54d20@mail.vt.edu>
@ 1997-11-13 23:15 ` Andreas Johansson
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Johansson @ 1997-11-13 23:15 UTC (permalink / raw)
On Thu, 13 Nov 1997, nm wrote:
> maybe im an idiot here but i havnt been able to
> get pnpdump of the isapnptools to work, heres
> some info on how the compile of isapnptools here
> went...
Well, it's not you that's the idiot...
> now when i run pnpdump here is what happens
>
> [root@penfold isapnptools-1.10.orig]# pnpdump
> Unable to get io permission for WRITE_DATA: Bad address
If you look in the code you see that this is error is received when a call
to ioperm() on one single address fails. Now, here's my point:
Why try to get access to one port and then do iopl(3), which gets you
access to _ALL_ ports. ???
So, here's my fix to the problem (isapnptools-1.7, but you won't have any
problem finding the same area in the newer code):
-----------------------------
--- isapnp.y.orig Fri Oct 24 07:08:46 1997
+++ isapnp.y Fri Oct 24 07:09:35 1997
@@ -923,11 +923,14 @@
fprintf(stderr, "%s\nThis is free software, see the sources for details.\nThis software has NO WARRANTY, use at your OWN RISK\n\nUsage: %s configfile\n", rcsid, argv[0]);
exit(1);
}
+#if 0 /* Why do ioperm and then iopl? This ioperm doesn't work on 2.1.x
+ kernels either. */
if(ioperm(ADDRESS_ADDR, 1, 1) < 0)
{
perror("Unable to get io permission for ADDRESS");
exit(1);
}
+#endif
/* Have to get unrestricted access to io ports, as WRITE_DATA port > 0x3ff */
if(iopl(3) < 0)
{
-----------------------------
I'm not sure while ioperm fails though. Never cared to investigate with
such a simple solution/workaround.
> [root@penfold isapnptools-1.10.orig]#
>
> btw this is redhat4.2 on an axppci33 with 2.0.30
> the only isa card is a soundblaster 16 pnp
>
> any ideas
> nick
Good luck!
--
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se :
: S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN :
: Have you had your dose of 261.62 BogoMIPS today? - Run Alpha! :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1997-11-13 23:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <3.0.2.32.19971113160919.00c54d20@mail.vt.edu>
1997-11-13 23:15 ` isapnp Andreas Johansson
1997-11-13 21:09 isapnp nm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox