2 Base Library CPU Functions for all architectures.
4 Copyright (c) 2006, Intel Corporation<BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 // Include common header file for this module.
20 #include "CommonHeader.h"
23 Disables CPU interrupts and returns the interrupt state prior to the disable
26 Disables CPU interrupts and returns the interrupt state prior to the disable
29 @retval TRUE CPU interrupts were enabled on entry to this call.
30 @retval FALSE CPU interrupts were disabled on entry to this call.
35 SaveAndDisableInterrupts (
39 BOOLEAN InterruptState
;
41 InterruptState
= GetInterruptState ();
43 return InterruptState
;
47 Set the current CPU interrupt state.
49 Sets the current CPU interrupt state to the state specified by
50 InterruptState. If InterruptState is TRUE, then interrupts are enabled. If
51 InterruptState is FALSE, then interrupts are disabled. InterruptState is
54 @param InterruptState TRUE if interrupts should enabled. FALSE if
55 interrupts should be disabled.
57 @return InterruptState
63 IN BOOLEAN InterruptState
71 return InterruptState
;