[lkml]   [1999]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectinb/outb strangeness

I've got a Problem with outb on recent Kernels (2.2 series) in a loadable
module I ported to 2.2.x.
I don't remeber, that I had this Problem on 2.0.x though.

When I do outb(some_value,REGISTER) this sometimes just does _not_ work.

Sometimes means that it works on some registers and does not work on others.
Using outb_p instead does not solve this Problem either.

A strange thing happens when I try to access the Register in usermode! I've
got an old libc5 binary which does the outb from the commandline.

This old binary happens to set the Register correctly! When compiling the
same code with glibc (replacing with correct .h files of course) the
commandline outb does not work as well.

I don't rember wheater or not outb_p was working in usermode using libc5, but
it always causes segmentation faults when used in a glibc binary.

Let me summarize this:

In case of a special configuration register the outb command in kernelmode
_does not work_. Writing the same Register from userland _does work_ using a
libc5 binary. Writing the Register using a glibc binary _does not work_ as

Would be nice if anybody of the hardware-hackers could give me a hint, as
I'm really stuck with this Problem at the Moment.



|_||_||||| Sven Geggus @ Fraunhofer Institut fuer Informations- und
|_||_||||| Datenverarbeitung, Karlsruhe, GERMANY
| | Phone: +49 6091-422, Web:
| IITB | ... LinuX powered DATA aquisition and evaluation

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:54    [from the cache]
©2003-2014 Jasper Spaans. hosted at Digital Ocean