[ros-dev] [ros-diffs] [dgorbachev] 53907: [NTOSKRNL] Use inline asm in KiIsNpxErrataPresent(). C code can be optimized in a wrong way.

Alex Ionescu ionucu at videotron.ca
Sat Oct 1 17:13:35 UTC 2011


Those three intrinsics should be barriers -- why is it moving the math
outside?

If -Ofast is a problem, that function simply needs a pragma to disable
optimization.

Best regards,
Alex Ionescu


On Sat, Oct 1, 2011 at 12:38 PM, Dmitry Gorbachev
<d.g.gorbachev at gmail.com>wrote:

> 1) Math can be moved outside _disable/_enable/__writecr0. It can be
> fixed by making other local vars volatile.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20111001/9bd5753b/attachment.htm>


More information about the Ros-dev mailing list