Home
last modified time | relevance | path

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

123

/Linux-v4.19/arch/x86/include/asm/
Dtlbflush.h232 unsigned long cr4; member
292 this_cpu_write(cpu_tlbstate.cr4, __read_cr4()); in cr4_init_shadow()
295 static inline void __cr4_set(unsigned long cr4) in __cr4_set() argument
298 this_cpu_write(cpu_tlbstate.cr4, cr4); in __cr4_set()
299 __write_cr4(cr4); in __cr4_set()
305 unsigned long cr4, flags; in cr4_set_bits() local
308 cr4 = this_cpu_read(cpu_tlbstate.cr4); in cr4_set_bits()
309 if ((cr4 | mask) != cr4) in cr4_set_bits()
310 __cr4_set(cr4 | mask); in cr4_set_bits()
317 unsigned long cr4, flags; in cr4_clear_bits() local
[all …]
Dsuspend_32.h22 unsigned long cr0, cr2, cr3, cr4; member
Dsuspend_64.h37 unsigned long cr0, cr2, cr3, cr4, cr8; member
Drealmode.h50 u32 cr4;
/Linux-v4.19/tools/testing/selftests/kvm/
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()
94 sregs.cr4 &= ~X86_CR4_OSXSAVE; in main()
/Linux-v4.19/arch/x86/power/
Dhibernate_asm_32.S36 jecxz 1f # cr4 Pentium and higher, skip if zero
38 movl %ecx, %cr4; # turn off PGE
66 jecxz 1f # cr4 Pentium and higher, skip if zero
67 movl %ecx, %cr4; # turn PGE back on
Dhibernate_asm_64.S79 movq %rcx, %cr4; # turn off PGE
82 movq %rbx, %cr4; # turn PGE back on
112 movq %rdx, %cr4; # turn off PGE
115 movq %rax, %cr4; # turn PGE back on
Dcpu.c125 ctxt->cr4 = __read_cr4(); in __save_processor_state()
206 if (ctxt->cr4) in __restore_processor_state()
207 __write_cr4(ctxt->cr4); in __restore_processor_state()
212 __write_cr4(ctxt->cr4); in __restore_processor_state()
/Linux-v4.19/arch/x86/xen/
Dxen-pvh.S85 mov %cr4, %eax
87 mov %eax, %cr4
154 mov %cr4, %eax
156 mov %eax, %cr4
/Linux-v4.19/arch/x86/kernel/cpu/mtrr/
Dcyrix.c134 static u32 cr4, ccr3; variable
142 cr4 = __read_cr4(); in prepare_set()
143 __write_cr4(cr4 & ~X86_CR4_PGE); in prepare_set()
175 __write_cr4(cr4); in post_set()
Dgeneric.c719 static unsigned long cr4; variable
749 cr4 = __read_cr4(); in prepare_set()
750 __write_cr4(cr4 & ~X86_CR4_PGE); in prepare_set()
779 __write_cr4(cr4); in post_set()
/Linux-v4.19/tools/testing/selftests/kvm/lib/
Dvmx.c74 unsigned long cr4; in prepare_for_vmx_operation() local
86 __asm__ __volatile__("mov %%cr4, %0" : "=r"(cr4) : : "memory"); in prepare_for_vmx_operation()
87 cr4 &= rdmsr(MSR_IA32_VMX_CR4_FIXED1); in prepare_for_vmx_operation()
88 cr4 |= rdmsr(MSR_IA32_VMX_CR4_FIXED0); in prepare_for_vmx_operation()
90 cr4 |= X86_CR4_VMXE; in prepare_for_vmx_operation()
91 __asm__ __volatile__("mov %0, %%cr4" : : "r"(cr4) : "memory"); in prepare_for_vmx_operation()
/Linux-v4.19/arch/x86/mm/
Dmem_encrypt_boot.S102 mov %cr4, %rdx
104 mov %rdx, %cr4
106 mov %rdx, %cr4
/Linux-v4.19/include/xen/interface/hvm/
Dhvm_vcpu.h42 uint32_t cr4; member
105 uint64_t cr4; member
/Linux-v4.19/arch/x86/kernel/
Dprocess_32.c64 unsigned long cr0 = 0L, cr2 = 0L, cr3 = 0L, cr4 = 0L; in __show_regs() local
94 cr4 = __read_cr4(); in __show_regs()
96 cr0, cr2, cr3, cr4); in __show_regs()
Drelocate_kernel_64.S68 movq %cr4, %rax
139 movq %rax, %cr4
218 movq %rax, %cr4
Drelocate_kernel_32.S57 movl %cr4, %eax
127 movl %eax, %cr4
199 movl %eax, %cr4
/Linux-v4.19/arch/x86/boot/compressed/
Dhead_64.S128 movl %cr4, %eax
130 movl %eax, %cr4
589 movl %cr4, %eax
595 movl %cr4, %eax
609 movl %eax, %cr4
Defi_thunk_64.S151 movl %cr4, %eax
153 movl %eax, %cr4
/Linux-v4.19/arch/x86/platform/olpc/
Dxo1-wakeup.S30 movl %eax, %cr4
64 movl %cr4, %edx
/Linux-v4.19/arch/powerpc/kernel/
Didle_book3s.S577 cmpd cr4,r5,r4
578 bge cr4,pnv_wakeup_tb_loss /* returns to caller */
748 cmpwi cr4,r8,1 /* cr4 will be gt if our bit is set, lt if not */
769 blt cr4,subcore_state_restored
815 blt cr4,clear_lock
848 blt cr4,hypervisor_state_restored
Dcpu_setup_6xx.S340 cmplwi cr4,r3,0x8002 /* 7457 */
348 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq
411 cmplwi cr4,r3,0x8002 /* 7457 */
419 cror 4*cr0+eq,4*cr0+eq,4*cr4+eq
/Linux-v4.19/arch/powerpc/boot/
Dppc_asm.h21 #define cr4 4 macro
/Linux-v4.19/tools/testing/selftests/kvm/include/
Dx86.h211 uint64_t cr4; in get_cr4() local
214 : /* output */ [cr4]"=r"(cr4)); in get_cr4()
215 return cr4; in get_cr4()
/Linux-v4.19/arch/sh/include/cpu-sh5/cpu/
Dregisters.h29 #define INTEVT cr4

123