enter_priv

Function enter_priv 

Source
pub unsafe extern "C" fn enter_priv(cpu: *mut CPUState) -> bool
Expand description

enter_priv() - Enter privileged mode. @cpu: Cpu state.

Enter into a higher-privileged mode, e.g., in order to conduct some memory access. This is a NO-OP on systems without different privilege modes.

Return:

  • True - Switch into high-privilege happened.
  • False - Switch did not happen.