interrupt handler - where is in8 ()

Hi there,

I am writing a interrupt handler for a special device. Following the
online reference I used mmap_device_io() and in8() to read the device’s
registers. The code compiles, but the linker can’t find in8(). The
online reference says, in8() should be part of libc.so. I used the utility
nm to list the content of libc.so and found no in8(). I searched every
*.so on my harddisk: none contains in8().

Does anyone know, where to find this function or how else to read
hardware registers ?

Thanks,
Martin

Now I’ve got it. When using gcc it’s inline assembler defined in the
file <x86/inout.h>. I’ve just forgotten to #include this file (via
<hw/inout.h>).

Sorry,
Martin

Martin Ruff <martin.ruff@am3.com> wrote:

Hi there,

I am writing a interrupt handler for a special device. Following the
online reference I used mmap_device_io() and in8() to read the device’s
registers. The code compiles, but the linker can’t find in8(). The
online reference says, in8() should be part of libc.so. I used the utility
nm to list the content of libc.so and found no in8(). I searched every
*.so on my harddisk: none contains in8().

Does anyone know, where to find this function or how else to read
hardware registers ?

Thanks,
Martin







\