message: by testing the kernel, nested_disable returns always false
diff: @@ -82,6 +82,7 @@ pub fn disable() {
  /// This function together with nested_enable can be used
  /// in situations when interrupts shouldn't be activated if they
  /// were not activated before calling this function.
  +#[cfg(not(test))]
  #[inline]
  pub fn nested_disable() -> bool {
  let was_enabled = unsafe { rflags::read().contains(rflags::RFlags::FLAGS_IF) };
  @@ -89,6 +90,11 @@ pub fn nested_disable() -> bool {
  was_enabled
  }
  +#[cfg(test)]
  +pub fn nested_disable() -> bool {
  + false
  +}
  +
  /// Enable IRQs (nested)
  ///
  /// Can be used in conjunction with nested_disable() to only enable
  