Compare commits
6 Commits
edk2-stabl
...
edk2-stabl
Author | SHA1 | Date | |
---|---|---|---|
b24306f15d | |||
8a57673316 | |||
c28e376edc | |||
85589ddbf6 | |||
1193aa2dfb | |||
42af706dfb |
@ -10,6 +10,13 @@ APPNAME = BrotliCompress
|
||||
|
||||
OBJECTS = \
|
||||
BrotliCompress.o \
|
||||
brotli/c/common/platform.o \
|
||||
brotli/c/common/shared_dictionary.o \
|
||||
brotli/c/common/constants.o \
|
||||
brotli/c/common/context.o \
|
||||
brotli/c/enc/command.o \
|
||||
brotli/c/enc/compound_dictionary.o \
|
||||
brotli/c/enc/fast_log.o \
|
||||
brotli/c/common/dictionary.o \
|
||||
brotli/c/common/transform.o \
|
||||
brotli/c/dec/bit_reader.o \
|
||||
|
@ -13,14 +13,23 @@ APPNAME = BrotliCompress
|
||||
|
||||
#LIBS = $(LIB_PATH)\Common.lib
|
||||
|
||||
COMMON_OBJ = brotli\c\common\dictionary.obj brotli\c\common\transform.obj
|
||||
COMMON_OBJ = \
|
||||
brotli\c\common\constants.obj \
|
||||
brotli\c\common\context.obj \
|
||||
brotli\c\common\dictionary.obj \
|
||||
brotli\c\common\platform.obj \
|
||||
brotli\c\common\shared_dictionary.obj \
|
||||
brotli\c\common\transform.obj
|
||||
DEC_OBJ = \
|
||||
brotli\c\dec\bit_reader.obj \
|
||||
brotli\c\dec\decode.obj \
|
||||
brotli\c\dec\huffman.obj \
|
||||
brotli\c\dec\state.obj
|
||||
ENC_OBJ = \
|
||||
brotli\c\enc\command.obj \
|
||||
brotli\c\enc\compound_dictionary.obj \
|
||||
brotli\c\enc\backward_references.obj \
|
||||
brotli\c\enc\fast_log.obj \
|
||||
brotli\c\enc\backward_references_hq.obj \
|
||||
brotli\c\enc\bit_cost.obj \
|
||||
brotli\c\enc\block_splitter.obj \
|
||||
|
Submodule BaseTools/Source/C/BrotliCompress/brotli updated: 666c3280cc...f4153a09f8
Submodule MdeModulePkg/Library/BrotliCustomDecompressLib/brotli updated: 666c3280cc...f4153a09f8
@ -280,12 +280,16 @@ WifiMgrGetStrAKMList (
|
||||
//
|
||||
// Current AKM Suite is between 1-9
|
||||
//
|
||||
AKMListDisplay = (CHAR16 *)AllocateZeroPool (sizeof (CHAR16) * AKMSuiteCount * 2);
|
||||
AKMListDisplay = (CHAR16 *)AllocateZeroPool (sizeof (CHAR16) * (AKMSuiteCount * 2 + 1));
|
||||
if (AKMListDisplay != NULL) {
|
||||
for (Index = 0; Index < AKMSuiteCount; Index++) {
|
||||
//
|
||||
// The size of buffer should be 3 CHAR16 for Null-terminated Unicode string.
|
||||
// The first char is the AKM Suite number, the second char is ' ', the third char is '\0'.
|
||||
//
|
||||
UnicodeSPrint (
|
||||
AKMListDisplay + (Index * 2),
|
||||
sizeof (CHAR16) * 2,
|
||||
sizeof (CHAR16) * 3,
|
||||
L"%d ",
|
||||
Profile->Network.AKMSuite->AKMSuiteList[Index].SuiteType
|
||||
);
|
||||
@ -333,12 +337,16 @@ WifiMgrGetStrCipherList (
|
||||
//
|
||||
// Current Cipher Suite is between 1-9
|
||||
//
|
||||
CipherListDisplay = (CHAR16 *)AllocateZeroPool (sizeof (CHAR16) * CipherSuiteCount * 2);
|
||||
CipherListDisplay = (CHAR16 *)AllocateZeroPool (sizeof (CHAR16) * (CipherSuiteCount * 2 + 1));
|
||||
if (CipherListDisplay != NULL) {
|
||||
for (Index = 0; Index < CipherSuiteCount; Index++) {
|
||||
//
|
||||
// The size of buffer should be 3 CHAR16 for Null-terminated Unicode string.
|
||||
// The first char is the Cipher Suite number, the second char is ' ', the third char is '\0'.
|
||||
//
|
||||
UnicodeSPrint (
|
||||
CipherListDisplay + (Index * 2),
|
||||
sizeof (CHAR16) * 2,
|
||||
sizeof (CHAR16) * 3,
|
||||
L"%d ",
|
||||
Profile->Network.CipherSuite->CipherSuiteList[Index].SuiteType
|
||||
);
|
||||
|
@ -906,7 +906,10 @@
|
||||
#
|
||||
# Variable driver stack (SMM)
|
||||
#
|
||||
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
|
||||
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
|
||||
<LibraryClasses>
|
||||
VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
|
||||
}
|
||||
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
|
||||
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
|
||||
<LibraryClasses>
|
||||
|
@ -1872,6 +1872,7 @@ GetCpuidFw (
|
||||
UINT32 XSaveSize;
|
||||
|
||||
XssMsr.Uint64 = 0;
|
||||
Compacted = FALSE;
|
||||
if (EcxIn == 1) {
|
||||
/*
|
||||
* The PPR and APM aren't clear on what size should be encoded in
|
||||
|
@ -956,7 +956,10 @@
|
||||
#
|
||||
# Variable driver stack (SMM)
|
||||
#
|
||||
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
|
||||
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
|
||||
<LibraryClasses>
|
||||
VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
|
||||
}
|
||||
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
|
||||
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
|
||||
<LibraryClasses>
|
||||
|
@ -974,7 +974,10 @@
|
||||
#
|
||||
# Variable driver stack (SMM)
|
||||
#
|
||||
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
|
||||
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
|
||||
<LibraryClasses>
|
||||
VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
|
||||
}
|
||||
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
|
||||
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
|
||||
<LibraryClasses>
|
||||
|
@ -971,7 +971,10 @@
|
||||
#
|
||||
# Variable driver stack (SMM)
|
||||
#
|
||||
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf
|
||||
OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesSmm.inf {
|
||||
<LibraryClasses>
|
||||
VmgExitLib|UefiCpuPkg/Library/VmgExitLibNull/VmgExitLibNull.inf
|
||||
}
|
||||
MdeModulePkg/Universal/FaultTolerantWriteDxe/FaultTolerantWriteSmm.inf
|
||||
MdeModulePkg/Universal/Variable/RuntimeDxe/VariableSmm.inf {
|
||||
<LibraryClasses>
|
||||
|
@ -259,9 +259,11 @@ GetTimerPeriod (
|
||||
EFI_EVENT TimerEvent;
|
||||
UINT32 StallCounter;
|
||||
EFI_TPL OldTpl;
|
||||
UINT32 TimerPeriod;
|
||||
|
||||
RttTimerTick = 0;
|
||||
StallCounter = 0;
|
||||
TimerPeriod = 0;
|
||||
|
||||
Status = gBS->CreateEvent (
|
||||
EVT_TIMER | EVT_NOTIFY_SIGNAL,
|
||||
@ -295,7 +297,12 @@ GetTimerPeriod (
|
||||
gBS->SetTimer (TimerEvent, TimerCancel, 0);
|
||||
gBS->CloseEvent (TimerEvent);
|
||||
|
||||
return StallCounter / RttTimerTick;
|
||||
TimerPeriod = StallCounter / RttTimerTick;
|
||||
if (TimerPeriod != 0) {
|
||||
return TimerPeriod;
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user