after SetVirtualAddressMap().\r
\r
@param[in] This The EFI_SMM_COMMUNICATION_PROTOCOL instance.\r
- @param[in out] CommBuffer A pointer to the buffer to convey into SMRAM.\r
- @param[in out] CommSize The size of the data buffer being passed in.On exit, the size of data\r
+ @param[in, out] CommBuffer A pointer to the buffer to convey into SMRAM.\r
+ @param[in, out] CommSize The size of the data buffer being passed in.On exit, the size of data\r
being returned. Zero if the handler does not wish to reply with any data.\r
\r
@retval EFI_SUCCESS The message was successfully posted.\r
after SetVirtualAddressMap().\r
\r
@param[in] This The EFI_SMM_COMMUNICATION_PROTOCOL instance.\r
- @param[in out] CommBuffer A pointer to the buffer to convey into SMRAM.\r
- @param[in out] CommSize The size of the data buffer being passed in.On exit, the size of data\r
+ @param[in, out] CommBuffer A pointer to the buffer to convey into SMRAM.\r
+ @param[in, out] CommSize The size of the data buffer being passed in.On exit, the size of data\r
being returned. Zero if the handler does not wish to reply with any data.\r
\r
@retval EFI_SUCCESS The message was successfully posted.\r
}\r
\r
//\r
- // Find the largest SMRAM range between 1MB and 4GB that is at least 1MB in size\r
+ // Find the largest SMRAM range between 1MB and 4GB that is at least 256KB - 4K in size\r
//\r
mCurrentSmramRange = NULL;\r
- for (Index = 0, MaxSize = SIZE_1MB; Index < gSmmCorePrivate->SmramRangeCount; Index++) {\r
+ for (Index = 0, MaxSize = SIZE_256KB - EFI_PAGE_SIZE; Index < gSmmCorePrivate->SmramRangeCount; Index++) {\r
if (gSmmCorePrivate->SmramRanges[Index].CpuStart >= BASE_1MB) {\r
if ((gSmmCorePrivate->SmramRanges[Index].CpuStart + gSmmCorePrivate->SmramRanges[Index].PhysicalSize) <= BASE_4GB) {\r
if (gSmmCorePrivate->SmramRanges[Index].PhysicalSize >= MaxSize) {\r