Home
last modified time | relevance | path

Searched refs:cr4 (Results 1 – 25 of 58) sorted by relevance

123

/Linux-v5.4/arch/x86/include/asm/
Dtlbflush.h220 unsigned long cr4; member
282 this_cpu_write(cpu_tlbstate.cr4, __read_cr4()); in cr4_init_shadow()
285 static inline void __cr4_set(unsigned long cr4) in __cr4_set() argument
288 this_cpu_write(cpu_tlbstate.cr4, cr4); in __cr4_set()
289 __write_cr4(cr4); in __cr4_set()
295 unsigned long cr4; in cr4_set_bits_irqsoff() local
297 cr4 = this_cpu_read(cpu_tlbstate.cr4); in cr4_set_bits_irqsoff()
298 if ((cr4 | mask) != cr4) in cr4_set_bits_irqsoff()
299 __cr4_set(cr4 | mask); in cr4_set_bits_irqsoff()
305 unsigned long cr4; in cr4_clear_bits_irqsoff() local
[all …]
Dsuspend_32.h22 unsigned long cr0, cr2, cr3, cr4; member
Dsuspend_64.h37 unsigned long cr0, cr2, cr3, cr4; member
Drealmode.h49 u32 cr4;
/Linux-v5.4/tools/testing/selftests/kvm/x86_64/
Dcr4_cpuid_sync_test.c30 uint64_t cr4; in cr4_cpuid_is_sync() local
38 cr4 = get_cr4(); in cr4_cpuid_is_sync()
40 return (!!(ecx & X86_FEATURE_OSXSAVE)) == (!!(cr4 & X86_CR4_OSXSAVE)); in cr4_cpuid_is_sync()
45 uint64_t cr4; in guest_code() local
48 cr4 = get_cr4(); in guest_code()
49 cr4 |= X86_CR4_OSXSAVE; in guest_code()
50 set_cr4(cr4); in guest_code()
100 sregs.cr4 &= ~X86_CR4_OSXSAVE; in main()
/Linux-v5.4/drivers/misc/lkdtm/
Dbugs.c281 unsigned long cr4; in lkdtm_UNSET_SMEP() local
284 cr4 = native_read_cr4(); in lkdtm_UNSET_SMEP()
286 if ((cr4 & X86_CR4_SMEP) != X86_CR4_SMEP) { in lkdtm_UNSET_SMEP()
290 cr4 &= ~(X86_CR4_SMEP); in lkdtm_UNSET_SMEP()
293 native_write_cr4(cr4); in lkdtm_UNSET_SMEP()
294 if (cr4 == native_read_cr4()) { in lkdtm_UNSET_SMEP()
296 cr4 |= X86_CR4_SMEP; in lkdtm_UNSET_SMEP()
298 native_write_cr4(cr4); in lkdtm_UNSET_SMEP()
327 direct_write_cr4(cr4); in lkdtm_UNSET_SMEP()
332 cr4 |= X86_CR4_SMEP; in lkdtm_UNSET_SMEP()
[all …]
/Linux-v5.4/arch/x86/power/
Dhibernate_asm_32.S54 jecxz 1f # cr4 Pentium and higher, skip if zero
56 movl %ecx, %cr4; # turn off PGE
87 jecxz 1f # cr4 Pentium and higher, skip if zero
88 movl %ecx, %cr4; # turn PGE back on
Dhibernate_asm_64.S78 movq %rcx, %cr4; # turn off PGE
81 movq %rbx, %cr4; # turn PGE back on
111 movq %rdx, %cr4; # turn off PGE
114 movq %rax, %cr4; # turn PGE back on
Dcpu.c125 ctxt->cr4 = __read_cr4(); in __save_processor_state()
203 if (ctxt->cr4) in __restore_processor_state()
204 __write_cr4(ctxt->cr4); in __restore_processor_state()
208 __write_cr4(ctxt->cr4); in __restore_processor_state()
/Linux-v5.4/arch/x86/platform/pvh/
Dhead.S74 mov %cr4, %eax
76 mov %eax, %cr4
143 mov %cr4, %eax
145 mov %eax, %cr4
/Linux-v5.4/arch/x86/kernel/cpu/mtrr/
Dcyrix.c135 static u32 cr4, ccr3; variable
143 cr4 = __read_cr4(); in prepare_set()
144 __write_cr4(cr4 & ~X86_CR4_PGE); in prepare_set()
176 __write_cr4(cr4); in post_set()
Dgeneric.c720 static unsigned long cr4; variable
758 cr4 = __read_cr4(); in prepare_set()
759 __write_cr4(cr4 & ~X86_CR4_PGE); in prepare_set()
791 __write_cr4(cr4); in post_set()
/Linux-v5.4/arch/x86/mm/
Dmem_encrypt_boot.S99 mov %cr4, %rdx
101 mov %rdx, %cr4
103 mov %rdx, %cr4
/Linux-v5.4/include/xen/interface/hvm/
Dhvm_vcpu.h42 uint32_t cr4; member
105 uint64_t cr4; member
/Linux-v5.4/arch/x86/kernel/
Dprocess_32.c63 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L; in __show_regs() local
87 cr4 = __read_cr4(); in __show_regs()
89 cr0, cr2, cr3, cr4); in __show_regs()
Drelocate_kernel_64.S66 movq %cr4, %rax
137 movq %rax, %cr4
216 movq %rax, %cr4
Drelocate_kernel_32.S55 movl %cr4, %eax
125 movl %eax, %cr4
197 movl %eax, %cr4
/Linux-v5.4/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c135 unsigned long cr4; in prepare_for_vmx_operation() local
147 __asm__ __volatile__("mov %%cr4, %0" : "=r"(cr4) : : "memory"); in prepare_for_vmx_operation()
148 cr4 &= rdmsr(MSR_IA32_VMX_CR4_FIXED1); in prepare_for_vmx_operation()
149 cr4 |= rdmsr(MSR_IA32_VMX_CR4_FIXED0); in prepare_for_vmx_operation()
151 cr4 |= X86_CR4_VMXE; in prepare_for_vmx_operation()
152 __asm__ __volatile__("mov %0, %%cr4" : : "r"(cr4) : "memory"); in prepare_for_vmx_operation()
/Linux-v5.4/arch/x86/boot/compressed/
Dhead_64.S128 movl %cr4, %eax
130 movl %eax, %cr4
592 movl %cr4, %eax
598 movl %cr4, %eax
622 movl %eax, %cr4
Defi_thunk_64.S151 movl %cr4, %eax
153 movl %eax, %cr4
/Linux-v5.4/arch/x86/platform/olpc/
Dxo1-wakeup.S30 movl %eax, %cr4
64 movl %cr4, %edx
/Linux-v5.4/arch/powerpc/kernel/
Dcpu_setup_6xx.S336 cmplwi cr4,r3,0x8002 /* 7457 */
344 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq
407 cmplwi cr4,r3,0x8002 /* 7457 */
415 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq
/Linux-v5.4/arch/powerpc/boot/
Dppc_asm.h17 #define cr4 4 macro
/Linux-v5.4/tools/testing/selftests/kvm/include/x86_64/
Dprocessor.h209 uint64_t cr4; in get_cr4() local
212 : /* output */ [cr4]"=r"(cr4)); in get_cr4()
213 return cr4; in get_cr4()
/Linux-v5.4/arch/sh/include/cpu-sh5/cpu/
Dregisters.h26 #define INTEVT cr4

123