Searched refs:cr4 (Results 1 - 10 of 10) sorted by relevance

/fuchsia/zircon/kernel/target/pc/multiboot/
H A Dpaging.c34 uint32_t cr4; local
35 __asm__("mov %%cr4, %0" : "=r"(cr4));
36 return cr4;
39 static void set_cr4(uint32_t cr4) { argument
40 __asm__ volatile("mov %0, %%cr4" :: "r"(cr4));
/fuchsia/zircon/kernel/arch/x86/
H A Dmmu_mem_types.cpp158 ulong cr4 = x86_get_cr4(); local
159 bool pge_was_set = !!(cr4 & X86_CR4_PGE);
160 cr4 &= ~X86_CR4_PGE;
161 x86_set_cr4(cr4);
220 cr4 = x86_get_cr4();
221 cr4 |= X86_CR4_PGE;
222 x86_set_cr4(cr4);
H A Dregisters.cpp126 ulong cr4 = x86_get_cr4(); local
128 x86_set_cr4(cr4 | X86_CR4_OSXSAVE);
268 ulong cr4 = x86_get_cr4(); local
269 cr4 |= X86_CR4_OSXMMEXPT;
270 cr4 |= X86_CR4_OSFXSR;
271 x86_set_cr4(cr4);
294 ulong cr4 = x86_get_cr4(); local
295 cr4 |= X86_CR4_OSXMMEXPT;
296 x86_set_cr4(cr4);
H A Dmexec.S38 mov %cr4, %rax
40 mov %rax, %cr4
H A Dstart.S189 mov %cr4, %eax
191 mov %eax, %cr4
320 mov %cr4, %rax
322 mov %rax, %cr4
H A Dmmu.cpp124 ulong cr4 = x86_get_cr4(); local
125 if (likely(cr4 & X86_CR4_PGE)) {
126 x86_set_cr4(cr4 & ~X86_CR4_PGE);
127 x86_set_cr4(cr4);
689 ulong cr4 = x86_get_cr4(); local
691 cr4 |= X86_CR4_SMEP;
693 cr4 |= X86_CR4_SMAP;
694 x86_set_cr4(cr4);
H A Dmp.cpp182 uint64_t cr4 = x86_get_cr4(); local
185 cr4 |= X86_CR4_FSGSBASE;
188 cr4 |= X86_CR4_UMIP;
190 x86_set_cr4(cr4);
H A Dstart16.S58 mov %cr4, %ecx
60 mov %ecx, %cr4
/fuchsia/zircon/kernel/arch/x86/hypervisor/
H A Dvmx_cpu_state.cpp131 uint64_t cr4 = x86_get_cr4() | X86_CR4_VMXE;
132 if (cr_is_invalid(cr4, X86_MSR_IA32_VMX_CR4_FIXED0, X86_MSR_IA32_VMX_CR4_FIXED1))
136 x86_set_cr4(cr4);
H A Dvcpu.cpp512 uint64_t cr4 = X86_CR4_VMXE; // Enable VMX local
515 cr4 |= X86_CR4_PAE;
517 if (cr_is_invalid(cr4, X86_MSR_IA32_VMX_CR4_FIXED0, X86_MSR_IA32_VMX_CR4_FIXED1)) {
520 vmcs.Write(VmcsFieldXX::GUEST_CR4, cr4);

Completed in 43 milliseconds