lkml.org 
[lkml]   [1997]   [Jan]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: what is wrong with this?
Date
> 
> 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)

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.036 / U:1.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site