According to Malcolm Beattie:
> Miquel van Smoorenburg writes:
> > void *addr = (void *)ctx.eip;
>
> eip gives the instruction pointer. It's cr2 that gives the address
> of the page fault.
Ofcourse you are right. eip points to the program code where the
exception occured, cr2 to the address of the page fault.
Mike.
-- Cistron Certified Internetwork Expert #1. Think free speech; drink free beer.- 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/
This archive was generated by hypermail 2b29 : Mon Aug 07 2000 - 21:00:08 EST