Lines Matching refs:cr4
558 unsigned long cr4; in lkdtm_UNSET_SMEP() local
561 cr4 = native_read_cr4(); in lkdtm_UNSET_SMEP()
563 if ((cr4 & X86_CR4_SMEP) != X86_CR4_SMEP) { in lkdtm_UNSET_SMEP()
567 cr4 &= ~(X86_CR4_SMEP); in lkdtm_UNSET_SMEP()
570 native_write_cr4(cr4); in lkdtm_UNSET_SMEP()
571 if (cr4 == native_read_cr4()) { in lkdtm_UNSET_SMEP()
573 cr4 |= X86_CR4_SMEP; in lkdtm_UNSET_SMEP()
575 native_write_cr4(cr4); in lkdtm_UNSET_SMEP()
605 direct_write_cr4(cr4); in lkdtm_UNSET_SMEP()
610 cr4 |= X86_CR4_SMEP; in lkdtm_UNSET_SMEP()
612 native_write_cr4(cr4); in lkdtm_UNSET_SMEP()