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 Disables CPU interrupts and returns the interrupt state prior to the disable
21 Disables CPU interrupts and returns the interrupt state prior to the disable
24 @retval TRUE CPU interrupts were enabled on entry to this call.
25 @retval FALSE CPU interrupts were disabled on entry to this call.
30 SaveAndDisableInterrupts (
34 BOOLEAN InterruptState
;
36 InterruptState
= GetInterruptState ();
38 return InterruptState
;
42 Set the current CPU interrupt state.
44 Sets the current CPU interrupt state to the state specified by
45 InterruptState. If InterruptState is TRUE, then interrupts are enabled. If
46 InterruptState is FALSE, then interrupts are disabled. InterruptState is
49 @param InterruptState TRUE if interrupts should enabled. FALSE if
50 interrupts should be disabled.
52 @return InterruptState
58 IN BOOLEAN InterruptState
66 return InterruptState
;