lkml.org 
[lkml]   [1999]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: io question
Hello,

> I have done work with msdos interrupt handlers but know I am switching
> over to linux. The program will compile fine but then when I insert it into
> the kernel it says it can't find ioperm or outb or anything dealing with
> io. It does find the interrupt stuff though like probe_irq_on and
> probe_irq_off. I just use a normal gcc -c fname.c to compile and insmod
> fname.o to insert the module. I am trying to do one of the snipets of
> code from the linux device drivers book by oreilly.

You need to compile with -D__KERNEL__ -O (yes, optimization).

Have a nice fortnight
--
Martin `MJ' Mares <mj@ucw.cz> http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
"COBOL -- Completely Outdated, Badly Overused Language"

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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