Change functional static variable to Global variable. No STATIC modifier is recommended though it is defined in Base.h. It is for consistency.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6316 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2008-10-31 02:07:52 +00:00
parent 0df3178443
commit 4fd730b35e
1 changed files with 7 additions and 6 deletions

View File

@ -623,6 +623,8 @@ ConvertKeyboardScanCodeToEfiKey[] = {
//
UINTN mWaitForValueTimeOut = KEYBOARD_WAITFORVALUE_TIMEOUT;
BOOLEAN mEnableMouseInterface;
/**
Read data register
@ -1639,11 +1641,10 @@ InitKeyboard (
EFI_STATUS Status;
EFI_STATUS Status1;
UINT8 CommandByte;
STATIC BOOLEAN EnableMouseInterface;
EFI_PS2_POLICY_PROTOCOL *Ps2Policy;
Status = EFI_SUCCESS;
EnableMouseInterface = TRUE;
mEnableMouseInterface = TRUE;
//
// Get Ps2 policy to set this
@ -1703,9 +1704,9 @@ InitKeyboard (
// Test the mouse enabling bit
//
if (CommandByte & 0x20) {
EnableMouseInterface = FALSE;
mEnableMouseInterface = FALSE;
} else {
EnableMouseInterface = TRUE;
mEnableMouseInterface = TRUE;
}
} else {
@ -1751,7 +1752,7 @@ InitKeyboard (
//
// Don't enable mouse interface later
//
EnableMouseInterface = FALSE;
mEnableMouseInterface = FALSE;
}
@ -1936,7 +1937,7 @@ InitKeyboard (
//
Done:
if (EnableMouseInterface) {
if (mEnableMouseInterface) {
//
// Enable mouse interface
//