Re: Inline assembly is hard...

2013-08-06 Thread Marc Espie
On Tue, Aug 06, 2013 at 12:37:49AM +0200, Mark Kettenis wrote: > The atomic_setbits_int() and atomic_clearbits_int() implementations > use stwcx., which touches the condition code register. This means we > need to tell GCC that it gets clobbered. Fixes issues with > uvm_page_physload() which curr

Inline assembly is hard...

2013-08-05 Thread Mark Kettenis
The atomic_setbits_int() and atomic_clearbits_int() implementations use stwcx., which touches the condition code register. This means we need to tell GCC that it gets clobbered. Fixes issues with uvm_page_physload() which currently gets miscompiled. ok? Index: atomic.h