> >We may be able to set Pentiums to trap on the lock prefix when in
> >user-mode. User mode code doesn't (shouldn't) use this instruction.
> >This should fix the problem. I have already grepped through the latest
> >gcc c-library and none of that code seems to require the lock prefix.
>
> What about thread libraries? Wouldn't these need the lock prefix to
> ensure atomic operation?
Beside that you cannot simply trap on the `lock' prefix it is of
course completely wrong that `lock' isn't used on user-level. glibc
plus its other libraries use it quite often to handle concurrency.
-- Uli
---------------. drepper at gnu.org ,-. Rubensstrasse 5
Ulrich Drepper \ ,-------------------' \ 76149 Karlsruhe/Germany
Cygnus Solutions `--' drepper at cygnus.com `------------------------