MdeModulePkg: Use PcdSet##S to replace PcdSet##

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Dandan Bi <dandan.bi@intel.com>
Reviewed-by: Qiu Shumin <shumin.qiu@intel.com>

git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19166 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Dandan Bi 2015-12-08 08:03:42 +00:00 committed by shenshushi
parent 5ac96e3a28
commit e750958bbc
2 changed files with 24 additions and 12 deletions

View File

@ -237,8 +237,10 @@ BmmBdsSetConsoleMode (
// //
// Update text mode PCD. // Update text mode PCD.
// //
PcdSet32 (PcdConOutColumn, mBmmSetupTextModeColumn); Status = PcdSet32S (PcdConOutColumn, mBmmSetupTextModeColumn);
PcdSet32 (PcdConOutRow, mBmmSetupTextModeRow); ASSERT_EFI_ERROR (Status);
Status = PcdSet32S (PcdConOutRow, mBmmSetupTextModeRow);
ASSERT_EFI_ERROR (Status);
FreePool (Info); FreePool (Info);
return EFI_SUCCESS; return EFI_SUCCESS;
} }
@ -279,10 +281,14 @@ BmmBdsSetConsoleMode (
// Set PCD to Inform GraphicsConsole to change video resolution. // Set PCD to Inform GraphicsConsole to change video resolution.
// Set PCD to Inform Consplitter to change text mode. // Set PCD to Inform Consplitter to change text mode.
// //
PcdSet32 (PcdVideoHorizontalResolution, NewHorizontalResolution); Status = PcdSet32S (PcdVideoHorizontalResolution, NewHorizontalResolution);
PcdSet32 (PcdVideoVerticalResolution, NewVerticalResolution); ASSERT_EFI_ERROR (Status);
PcdSet32 (PcdConOutColumn, NewColumns); Status = PcdSet32S (PcdVideoVerticalResolution, NewVerticalResolution);
PcdSet32 (PcdConOutRow, NewRows); ASSERT_EFI_ERROR (Status);
Status = PcdSet32S (PcdConOutColumn, NewColumns);
ASSERT_EFI_ERROR (Status);
Status = PcdSet32S (PcdConOutRow, NewRows);
ASSERT_EFI_ERROR (Status);
// //
// Video mode is changed, so restart graphics console driver and higher level driver. // Video mode is changed, so restart graphics console driver and higher level driver.

View File

@ -212,8 +212,10 @@ BmBdsSetConsoleMode (
// //
// Update text mode PCD. // Update text mode PCD.
// //
PcdSet32 (PcdConOutColumn, mBmSetupTextModeColumn); Status = PcdSet32S (PcdConOutColumn, mBmSetupTextModeColumn);
PcdSet32 (PcdConOutRow, mBmSetupTextModeRow); ASSERT_EFI_ERROR (Status);
Status = PcdSet32S (PcdConOutRow, mBmSetupTextModeRow);
ASSERT_EFI_ERROR (Status);
FreePool (Info); FreePool (Info);
return EFI_SUCCESS; return EFI_SUCCESS;
} }
@ -254,10 +256,14 @@ BmBdsSetConsoleMode (
// Set PCD to Inform GraphicsConsole to change video resolution. // Set PCD to Inform GraphicsConsole to change video resolution.
// Set PCD to Inform Consplitter to change text mode. // Set PCD to Inform Consplitter to change text mode.
// //
PcdSet32 (PcdVideoHorizontalResolution, NewHorizontalResolution); Status = PcdSet32S (PcdVideoHorizontalResolution, NewHorizontalResolution);
PcdSet32 (PcdVideoVerticalResolution, NewVerticalResolution); ASSERT_EFI_ERROR (Status);
PcdSet32 (PcdConOutColumn, NewColumns); Status = PcdSet32S (PcdVideoVerticalResolution, NewVerticalResolution);
PcdSet32 (PcdConOutRow, NewRows); ASSERT_EFI_ERROR (Status);
Status = PcdSet32S (PcdConOutColumn, NewColumns);
ASSERT_EFI_ERROR (Status);
Status = PcdSet32S (PcdConOutRow, NewRows);
ASSERT_EFI_ERROR (Status);
// //
// Video mode is changed, so restart graphics console driver and higher level driver. // Video mode is changed, so restart graphics console driver and higher level driver.