Re: weird IDT issue

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Fri Apr 05 2002 - 16:18:50 EST


On Fri, 5 Apr 2002, halfdead wrote:

> first of all, i get the correct idt base. the problem is i cannot
> dereference it, to get the interrupt entry i`m interrested in. second, i
> have tried to get the right segment by pushl %ss / popl %ds . it has the
> same behaviour. i would apreciate if you`d be more clear .. thanks in
> advance for your help.
>
> - halfdead

Well no. All addresses in the kernel are virtual addresses. You got
a number, which seemed like the correct place, but that number does
not represent the virtual address at which it can be accessed. For
starters, take that number and OR in PAGE_OFFSET. This is a way of
cheating, it is not the correct way, but you can then dereference
the resulting pointer (for experimental use only, standard disclaimers
apply).

Cheers,
Dick Johnson

Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).

                 Windows-2000/Professional isn't.

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



This archive was generated by hypermail 2b29 : Sun Apr 07 2002 - 22:00:18 EST