Gilles Chanteperdrix wrote:
> Gabriele Moabiti wrote:
>> (...)
>> I consider now ManageCustomExceptions a function that do nothing.
>> (...)
>> INT 0 (divide error) or 16 (fpu exception)
>> The system hangs.
>
> It will not work. It is because you have to handle the exception.
> Otherwise, when returning to user-space, your programs tries the faulty
> exception again, triggers the handler, which does nothing, and loops
> indefinitely...
>

so the int 1 and 3 are instead signed as traps with the old CS:EIP points past instruction causing exception...

Sorry for the question (I have always done it directly in asm reprogramming customizing the IDT), do I have to change the eip of the pt_regs structure passed to the function?

Thank you,
    Gabriele


Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e scrivi la tua opinione!