x86_read_cr4
x86_write_cr4(x86_read_cr4() | CR4_OS_FXSR | CR4_OS_XMM_EXCEPTION);
x86_write_cr4(x86_read_cr4() | IA32_CR4_GLOBAL_PAGES);
x86_write_cr4(x86_read_cr4() | IA32_CR4_GLOBAL_PAGES);
x86_write_cr4(x86_read_cr4() | IA32_CR4_MCE);
x86_write_cr4(x86_read_cr4() | IA32_CR4_SMAP);
x86_write_cr4(x86_read_cr4() | IA32_CR4_SMEP);
x86_write_cr4(x86_read_cr4() | IA32_CR4_OSXSAVE);
uint32 flags = x86_read_cr4();
x86_write_cr4(x86_read_cr4() | CR4_OS_FXSR | CR4_OS_XMM_EXCEPTION);
&& (x86_read_cr4() & IA32_CR4_SMEP) != 0) {
&& (x86_read_cr4() & IA32_CR4_SMAP) != 0) {
bool enabled = la57Available && (x86_read_cr4() & IA32_CR4_LA57) != 0;
x86_write_cr4(x86_read_cr4() | IA32_CR4_GLOBAL_PAGES);
x86_write_cr4(x86_read_cr4() | IA32_CR4_PAE | IA32_CR4_GLOBAL_PAGES);