MdeModulePkg: Fix unix style of EOL
Cc: Wu Hao <hao.a.wu@intel.com> Cc: Star Zeng <star.zeng@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Hao Wu <hao.a.wu@intel.com>
This commit is contained in:
@@ -211,37 +211,37 @@ IsExecuteDisableBitAvailable (
|
||||
return Available;
|
||||
}
|
||||
|
||||
/**
|
||||
The function will check if page table should be setup or not.
|
||||
|
||||
@retval TRUE Page table should be created.
|
||||
@retval FALSE Page table should not be created.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
ToBuildPageTable (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
if (!IsIa32PaeSupport ()) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (IsNullDetectionEnabled ()) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (PcdGet8 (PcdHeapGuardPropertyMask) != 0) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (PcdGetBool (PcdSetNxForStack) && IsExecuteDisableBitAvailable ()) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
The function will check if page table should be setup or not.
|
||||
|
||||
@retval TRUE Page table should be created.
|
||||
@retval FALSE Page table should not be created.
|
||||
|
||||
**/
|
||||
BOOLEAN
|
||||
ToBuildPageTable (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
if (!IsIa32PaeSupport ()) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (IsNullDetectionEnabled ()) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (PcdGet8 (PcdHeapGuardPropertyMask) != 0) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (PcdGetBool (PcdSetNxForStack) && IsExecuteDisableBitAvailable ()) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
Transfers control to DxeCore.
|
||||
|
||||
@@ -416,7 +416,7 @@ HandOffToDxeCore (
|
||||
TopOfStack = (EFI_PHYSICAL_ADDRESS) (UINTN) ALIGN_POINTER (TopOfStack, CPU_STACK_ALIGNMENT);
|
||||
|
||||
PageTables = 0;
|
||||
BuildPageTablesIa32Pae = ToBuildPageTable ();
|
||||
BuildPageTablesIa32Pae = ToBuildPageTable ();
|
||||
if (BuildPageTablesIa32Pae) {
|
||||
PageTables = Create4GPageTablesIa32Pae (BaseOfStack, STACK_SIZE);
|
||||
if (IsExecuteDisableBitAvailable ()) {
|
||||
|
Reference in New Issue
Block a user