2 Base Library CPU Functions for all architectures.
4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "BaseLibInternals.h"
13 Disables CPU interrupts and returns the interrupt state prior to the disable
16 @retval TRUE CPU interrupts were enabled on entry to this call.
17 @retval FALSE CPU interrupts were disabled on entry to this call.
22 SaveAndDisableInterrupts (
26 BOOLEAN InterruptState
;
28 InterruptState
= GetInterruptState ();
30 return InterruptState
;
34 Set the current CPU interrupt state.
36 Sets the current CPU interrupt state to the state specified by
37 InterruptState. If InterruptState is TRUE, then interrupts are enabled. If
38 InterruptState is FALSE, then interrupts are disabled. InterruptState is
41 @param InterruptState TRUE if interrupts should be enabled. FALSE if
42 interrupts should be disabled.
44 @return InterruptState
50 IN BOOLEAN InterruptState
58 return InterruptState
;