Is _scheduling_lock delared volatile? You should not disable scheduling or other optimizations to solve this problem. You should look for the appropriate attribute for the variable and/or function to prevent GCC from moving the code. David ** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/