Home
last modified time | relevance | path

Searched refs:cr0 (Results 1 – 25 of 34) sorted by relevance

12

/f-stack/freebsd/i386/i386/
H A Dsupport.s469 movl %cr0, %eax
492 movl %eax, %cr0
497 movl %cr0, %eax
520 movl %eax, %cr0
525 movl %cr0, %eax
551 movl %eax, %cr0
556 movl %cr0, %eax
582 movl %eax, %cr0
587 movl %cr0, %eax
613 movl %eax, %cr0
[all …]
H A Dmpboot.s116 5: movl %cr0,%eax
118 movl %eax,%cr0 /* let the games begin! */
170 movl %cr0, %eax
172 movl %eax, %cr0
H A Dmp_machdep.c228 u_int cr0; in init_secondary() local
288 cr0 = rcr0(); in init_secondary()
289 cr0 &= ~(CR0_CD | CR0_NW | CR0_EM); in init_secondary()
290 load_cr0(cr0); in init_secondary()
H A Dnpx.c952 register_t cr0; in npxsuspend() local
960 cr0 = rcr0(); in npxsuspend()
963 load_cr0(cr0); in npxsuspend()
969 register_t cr0; in npxresume() local
974 cr0 = rcr0(); in npxresume()
978 load_cr0(cr0); in npxresume()
H A Dinitcpu.c961 u_int cr0; in DB_SHOW_COMMAND() local
965 cr0 = rcr0(); in DB_SHOW_COMMAND()
999 printf("CR0=%x\n", cr0); in DB_SHOW_COMMAND()
H A Dswtch.s358 movl %cr0,%eax
420 movl %eax,%cr0
/f-stack/freebsd/amd64/amd64/
H A Dlocore.S87 movq %cr0,%rdx
103 movl %eax,%cr0
110 movl %edx,%cr0
H A Dmpboot.S67 mov %eax, %cr0
134 mov %cr0, %eax
136 mov %eax, %cr0
H A Dfpu.c302 u_long cr0; in fpususpend() local
304 cr0 = rcr0(); in fpususpend()
307 load_cr0(cr0); in fpususpend()
313 u_long cr0; in fpuresume() local
315 cr0 = rcr0(); in fpuresume()
321 load_cr0(cr0); in fpuresume()
H A Dxen-locore.S167 movl %cr0, %eax
169 movl %eax, %cr0
H A Dsupport.S1697 movq %cr0, %rax
1720 movq %rax, %cr0
1734 movq %cr0, %rax
1757 movq %rax, %cr0
1772 movq %cr0, %rax
1798 movq %rax, %cr0
1812 movq %cr0, %rax
1838 movq %rax, %cr0
1852 movq %cr0, %rax
1878 movq %rax, %cr0
[all …]
H A Dmp_machdep.c267 u_int64_t cr0; in init_secondary() local
355 cr0 = rcr0(); in init_secondary()
356 cr0 &= ~(CR0_CD | CR0_NW | CR0_EM); in init_secondary()
357 load_cr0(cr0); in init_secondary()
H A Dcpu_switch.S324 movq %cr0,%rax
447 movq %rax,%cr0
/f-stack/freebsd/i386/acpica/
H A Dacpi_wakecode.S118 mov %eax, %cr0
167 mov %cr0, %eax
169 mov %eax, %cr0
/f-stack/freebsd/amd64/acpica/
H A Dacpi_wakecode.S123 mov %eax, %cr0
196 mov %cr0, %eax
198 mov %eax, %cr0
/f-stack/freebsd/arm64/rockchip/
H A Drk_spi.c167 uint32_t cr0; in rk_spi_hw_setup() local
170 cr0 = CTRLR0_OPM_MASTER | CTRLR0_XFM_TR | CTRLR0_FRF_MOTO | in rk_spi_hw_setup()
175 cr0 |= CTRLR0_SCPH; in rk_spi_hw_setup()
177 cr0 |= CTRLR0_SCPOL; in rk_spi_hw_setup()
189 RK_SPI_WRITE_4(sc, RK_SPI_CTRLR0, cr0); in rk_spi_hw_setup()
/f-stack/freebsd/x86/x86/
H A Dx86_mem.c327 u_long cr0, cr4; in x86_mrstoreone() local
338 cr0 = rcr0(); in x86_mrstoreone()
339 load_cr0((cr0 & ~CR0_NW) | CR0_CD); in x86_mrstoreone()
419 load_cr0(cr0); in x86_mrstoreone()
H A Dcpu_machdep.c1435 u_int cr0; in disable_wp() local
1437 cr0 = rcr0(); in disable_wp()
1438 if ((cr0 & CR0_WP) == 0) in disable_wp()
1440 load_cr0(cr0 & ~CR0_WP); in disable_wp()
/f-stack/freebsd/amd64/vmm/intel/
H A Dvmcs.c346 u_long cr0, cr4, efer; in vmcs_init() local
372 cr0 = vmm_get_host_cr0(); in vmcs_init()
373 if ((error = vmwrite(VMCS_HOST_CR0, cr0)) != 0) in vmcs_init()
H A Dvmx.h148 u_long vmx_fix_cr0(u_long cr0);
/f-stack/freebsd/arm/include/
H A Dvfp.h35 #define VFPSID cr0
/f-stack/freebsd/amd64/include/
H A Dvmm_instruction_emul.h66 int vie_alignment_check(int cpl, int operand_size, uint64_t cr0,
/f-stack/freebsd/amd64/vmm/amd/
H A Dvmcb.c180 *retval = state->cr0; in vmcb_read()
271 state->cr0 = val; in vmcb_write()
H A Dsvm.c674 } else if (state->cr0 & CR0_PE) { in svm_vcpu_mode()
682 svm_paging_mode(uint64_t cr0, uint64_t cr4, uint64_t efer) in svm_paging_mode() argument
685 if ((cr0 & CR0_PG) == 0) in svm_paging_mode()
763 paging->paging_mode = svm_paging_mode(state->cr0, state->cr4, in svm_paging_info()
812 vis->cr0 = state->cr0; in svm_handle_io()
1164 if (state->cr0 & CR0_PG) in svm_write_efer()
1169 if ((newval & EFER_LME) != 0 && (state->cr0 & CR0_PG) != 0) in svm_write_efer()
2451 SNAPSHOT_VAR_OR_LEAVE(vmcb->state.cr0, meta, ret, done); in svm_snapshot()
/f-stack/freebsd/amd64/vmm/
H A Dvmm_instruction_emul.c719 uint64_t cr0, val, rflags; in get_gla() local
722 error = vie_read_register(vm, vcpuid, VM_REG_GUEST_CR0, &cr0); in get_gla()
753 if (vie_alignment_check(paging->cpl, opsize, cr0, rflags, *gla)) { in get_gla()
1527 uint64_t cr0, rflags, rsp, stack_gla, val; in emulate_stack_op() local
1564 error = vie_read_register(vm, vcpuid, VM_REG_GUEST_CR0, &cr0); in emulate_stack_op()
1588 if (vie_alignment_check(paging->cpl, size, cr0, rflags, stack_gla)) { in emulate_stack_op()
1846 vie_alignment_check(int cpl, int size, uint64_t cr0, uint64_t rf, uint64_t gla) in vie_alignment_check() argument
1852 if (cpl != 3 || (cr0 & CR0_AM) == 0 || (rf & PSL_AC) == 0) in vie_alignment_check()

12