Defined in 1 files as a function:

Referenced in 11 files:

Smatch caller information:

arch/x86/kernel/head64.c cr4_init_shadow() -> __read_cr4()

Type Parameter Key Value

arch/x86/mm/fault.c show_fault_oops() -> __read_cr4()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING

arch/x86/kernel/process_64.c __show_regs() -> __read_cr4()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

arch/x86/virt/hw.c x86_vmx_emergency_disable_virtualization_cpu() -> __read_cr4()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 irq
HALF_LOCKED2 rcu_read

arch/x86/xen/enlighten_pv.c cr4_init_shadow() -> __read_cr4()

Type Parameter Key Value
LOCK2 irq

arch/x86/kernel/cpu/cacheinfo.c cache_disable() -> __read_cr4()

Type Parameter Key Value
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &cache_disable_lock
HALF_LOCKED2 flags

arch/x86/kernel/cpu/common.c cr4_init() -> __read_cr4()

Type Parameter Key Value

arch/x86/kernel/acpi/sleep.c x86_acpi_suspend_lowlevel() -> __read_cr4()

Type Parameter Key Value

arch/x86/power/cpu.c __save_processor_state() -> __read_cr4()

Type Parameter Key Value
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &device_hotplug_lock
HALF_LOCKED2 global &system_transition_mutex
HALF_LOCKED2 irq

arch/x86/kernel/setup.c setup_arch() -> __read_cr4()

Type Parameter Key Value
LOCK2 irq