Re: what is wrong with this?

Bas Mevissen (sgm@stack.nl)
Thu, 9 Jan 1997 14:01:19 +0100 (MET)


>
> not in my experience. Simply put, the correct version of
> the code that would not work is:
>
> #include <unistd.h>
> #include <asm/io.h>
> int main(void)
> {
> iopl(3);
> outb(0,0x8370);
> }
>

Did you compile with gcc -O ? The IO-Programming HOWTO states that you ned
that to get the io access macros working.

Bas.

-- 
E-mail: sgm@stack.nl, S.G.A.H.Mevissen@stud.tue.nl
PGP: Finger sgm@toad.stack.nl for PGP public key, KeyID 3B896721 
WWW: www.stack.nl/~sgm (Also PGP public key)