Hello.

Wessel, Jason wrote:
> Sergei,

> If you are running with this patch you sent, this is why are you having
> problems with the swapper task getting killed on the x86_64.

    Erm, probably I was. :-/

> kgdb_unset_may_fault() is responsible for restoring the preempt count.
> And if it is not in the return path from a set_longjmp, then there is no
> way to restore the preempt count.

> It may seem counter intuitive to have the mayfault setup before
> settingup up the stack for a possible return from a long jump, but that
> is the way it works right now.

    Ah, got it! I forgot how setjmp() works. :-<

> Another possibility would be to split the functions to explicitly save
> the preempt count separately if you realy want to move the may_fault
> sets and unsets around.

    No, that wouldn't be worth it.
    There is yet another possibility would be to use *goto* ISO *return* in 
the error paths, although I'm not sure that it would make the code look better.

> Jason.

MBR, Sergei

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to