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"
12 Disables CPU interrupts and returns the interrupt state prior to the disable
15 @retval TRUE CPU interrupts were enabled on entry to this call.
16 @retval FALSE CPU interrupts were disabled on entry to this call.
21 SaveAndDisableInterrupts (
25 BOOLEAN InterruptState
;
27 InterruptState
= GetInterruptState ();
29 return InterruptState
;
33 Set the current CPU interrupt state.
35 Sets the current CPU interrupt state to the state specified by
36 InterruptState. If InterruptState is TRUE, then interrupts are enabled. If
37 InterruptState is FALSE, then interrupts are disabled. InterruptState is
40 @param InterruptState TRUE if interrupts should be enabled. FALSE if
41 interrupts should be disabled.
43 @return InterruptState
49 IN BOOLEAN InterruptState
58 return InterruptState
;