Lines Matching refs:__volatile

63 	__asm __volatile("int $3");  in breakpoint()
71 __asm __volatile("bsfl %1,%0" : "=r" (result) : "rm" (mask)); in bsfl()
80 __asm __volatile("bsfq %1,%0" : "=r" (result) : "rm" (mask)); in bsfq()
89 __asm __volatile("bsrl %1,%0" : "=r" (result) : "rm" (mask)); in bsrl()
98 __asm __volatile("bsrq %1,%0" : "=r" (result) : "rm" (mask)); in bsrq()
106 __asm __volatile("clflush %0" : : "m" (*(char *)addr)); in clflush()
113 __asm __volatile(".byte 0x66;clflush %0" : : "m" (*(char *)addr)); in clflushopt()
120 __asm __volatile("clts"); in clts()
126 __asm __volatile("cli" : : : "memory"); in disable_intr()
132 __asm __volatile("cpuid" in do_cpuid()
140 __asm __volatile("cpuid" in cpuid_count()
148 __asm __volatile("sti"); in enable_intr()
201 __asm __volatile("hlt"); in halt()
209 __asm __volatile("inb %w1, %0" : "=a" (data) : "Nd" (port)); in inb()
218 __asm __volatile("inl %w1, %0" : "=a" (data) : "Nd" (port)); in inl()
225 __asm __volatile("cld; rep; insb" in insb()
234 __asm __volatile("cld; rep; insw" in insw()
243 __asm __volatile("cld; rep; insl" in insl()
252 __asm __volatile("invd"); in invd()
260 __asm __volatile("inw %w1, %0" : "=a" (data) : "Nd" (port)); in inw()
267 __asm __volatile("outb %0, %w1" : : "a" (data), "Nd" (port)); in outb()
273 __asm __volatile("outl %0, %w1" : : "a" (data), "Nd" (port)); in outl()
279 __asm __volatile("cld; rep; outsb" in outsb()
287 __asm __volatile("cld; rep; outsw" in outsw()
295 __asm __volatile("cld; rep; outsl" in outsl()
303 __asm __volatile("outw %0, %w1" : : "a" (data), "Nd" (port)); in outw()
311 __asm __volatile("popcntq %1,%0" : "=r" (result) : "rm" (mask)); in popcntq()
319 __asm __volatile("lfence" : : : "memory"); in lfence()
326 __asm __volatile("mfence" : : : "memory"); in mfence()
333 __asm __volatile("sfence" : : : "memory"); in sfence()
339 __asm __volatile("pause"); in ia32_pause()
347 __asm __volatile("pushfq; popq %0" : "=r" (rf)); in read_rflags()
356 __asm __volatile("rdmsr" : "=a" (low), "=d" (high) : "c" (msr)); in rdmsr()
365 __asm __volatile("rdmsr" : "=a" (low) : "c" (msr) : "rdx"); in rdmsr32()
374 __asm __volatile("rdpmc" : "=a" (low), "=d" (high) : "c" (pmc)); in rdpmc()
383 __asm __volatile("rdtsc" : "=a" (low), "=d" (high)); in rdtsc()
392 __asm __volatile("rdtsc" : "=a" (rv) : : "edx"); in rdtsc32()
399 __asm __volatile("wbinvd"); in wbinvd()
405 __asm __volatile("pushq %0; popfq" : : "r" (rf)); in write_rflags()
415 __asm __volatile("wrmsr" : : "a" (low), "d" (high), "c" (msr)); in wrmsr()
422 __asm __volatile("movq %0,%%cr0" : : "r" (data)); in load_cr0()
430 __asm __volatile("movq %%cr0,%0" : "=r" (data)); in rcr0()
439 __asm __volatile("movq %%cr2,%0" : "=r" (data)); in rcr2()
447 __asm __volatile("movq %0,%%cr3" : : "r" (data) : "memory"); in load_cr3()
455 __asm __volatile("movq %%cr3,%0" : "=r" (data)); in rcr3()
462 __asm __volatile("movq %0,%%cr4" : : "r" (data)); in load_cr4()
470 __asm __volatile("movq %%cr4,%0" : "=r" (data)); in rcr4()
479 __asm __volatile("xgetbv" : "=a" (low), "=d" (high) : "c" (reg)); in rxcr()
490 __asm __volatile("xsetbv" : : "c" (reg), "a" (low), "d" (high)); in load_xcr()
539 __asm __volatile("invlpg %0" : : "m" (*(char *)addr) : "memory"); in invlpg()
557 __asm __volatile("invpcid (%0),%1" in invpcid()
565 __asm __volatile("movw %%fs,%0" : "=rm" (sel)); in rfs()
573 __asm __volatile("movw %%gs,%0" : "=rm" (sel)); in rgs()
581 __asm __volatile("movw %%ss,%0" : "=rm" (sel)); in rss()
588 __asm __volatile("movw %0,%%ds" : : "rm" (sel)); in load_ds()
594 __asm __volatile("movw %0,%%es" : : "rm" (sel)); in load_es()
601 __asm __volatile("monitor" in cpu_monitor()
609 __asm __volatile("mwait" : : "a" (hints), "c" (extensions)); in cpu_mwait()
621 __asm __volatile("rdmsr; movw %0,%%fs; wrmsr" in load_fs()
636 __asm __volatile("pushfq; cli; rdmsr; movw %0,%%gs; wrmsr; popfq" in load_gs()
644 __asm __volatile("movw %0,%%fs" : : "rm" (sel)); in load_fs()
650 __asm __volatile("movw %0,%%gs" : : "rm" (sel)); in load_gs()
657 __asm __volatile("lgdt (%0)" : : "r" (addr)); in bare_lgdt()
666 __asm __volatile("sgdt %0" : "=m" (*loc) : : "memory"); in sgdt()
672 __asm __volatile("lidt (%0)" : : "r" (addr)); in lidt()
681 __asm __volatile("sidt %0" : "=m" (*loc) : : "memory"); in sidt()
687 __asm __volatile("lldt %0" : : "r" (sel)); in lldt()
693 __asm __volatile("ltr %0" : : "r" (sel)); in ltr()
701 __asm __volatile("str %0" : "=r" (sel)); in read_tr()
709 __asm __volatile("movq %%dr0,%0" : "=r" (data)); in rdr0()
716 __asm __volatile("movq %0,%%dr0" : : "r" (dr0)); in load_dr0()
723 __asm __volatile("movq %%dr1,%0" : "=r" (data)); in rdr1()
730 __asm __volatile("movq %0,%%dr1" : : "r" (dr1)); in load_dr1()
737 __asm __volatile("movq %%dr2,%0" : "=r" (data)); in rdr2()
744 __asm __volatile("movq %0,%%dr2" : : "r" (dr2)); in load_dr2()
751 __asm __volatile("movq %%dr3,%0" : "=r" (data)); in rdr3()
758 __asm __volatile("movq %0,%%dr3" : : "r" (dr3)); in load_dr3()
765 __asm __volatile("movq %%dr6,%0" : "=r" (data)); in rdr6()
772 __asm __volatile("movq %0,%%dr6" : : "r" (dr6)); in load_dr6()
779 __asm __volatile("movq %%dr7,%0" : "=r" (data)); in rdr7()
786 __asm __volatile("movq %0,%%dr7" : : "r" (dr7)); in load_dr7()