]> granicus.if.org Git - clang/commit
intrin.h: Fix up bugs in the cr3 and msr intrinsics
authorReid Kleckner <reid@kleckner.net>
Tue, 8 Apr 2014 17:49:16 +0000 (17:49 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 8 Apr 2014 17:49:16 +0000 (17:49 +0000)
commitae696ed5d75c1347c463e190629669d4fd673002
treecedcceea835ddda1349617d2b55e3ee7a1402a2f
parentb497e9870725b438dd8b4cb17ca4e1809e957b13
intrin.h: Fix up bugs in the cr3 and msr intrinsics

Don't include input and output regs in clobbers.  Prefix some
identifiers with __.  Add a memory constraint to __readcr3 to prevent
reordering.  This constraint is heavy handed, but conservatively
correct.

Thanks to PaX Team for the suggestions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205778 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Headers/Intrin.h