/**\r
Grow size of the Depex stack\r
\r
- @retval EFI_SUCCESS Stack successfully growed. \r
+ @retval EFI_SUCCESS Stack successfully growed.\r
@retval EFI_OUT_OF_RESOURCES There is not enough system memory to grow the stack.\r
\r
**/\r
// Copy to Old Stack to the New Stack\r
//\r
CopyMem (\r
- NewStack, \r
- mDepexEvaluationStack, \r
+ NewStack,\r
+ mDepexEvaluationStack,\r
(mDepexEvaluationStackEnd - mDepexEvaluationStack) * sizeof (BOOLEAN)\r
);\r
\r
/**\r
Push an element onto the Boolean Stack.\r
\r
- @param Value BOOLEAN to push. \r
+ @param Value BOOLEAN to push.\r
\r
- @retval EFI_SUCCESS The value was pushed onto the stack. \r
+ @retval EFI_SUCCESS The value was pushed onto the stack.\r
@retval EFI_OUT_OF_RESOURCES There is not enough system memory to grow the stack.\r
\r
**/\r
/**\r
Pop an element from the Boolean stack.\r
\r
- @param Value BOOLEAN to pop. \r
+ @param Value BOOLEAN to pop.\r
\r
- @retval EFI_SUCCESS The value was popped onto the stack. \r
+ @retval EFI_SUCCESS The value was popped onto the stack.\r
@retval EFI_ACCESS_DENIED The pop operation underflowed the stack.\r
\r
**/\r
-EFI_STATUS \r
+EFI_STATUS\r
PopBool (\r
OUT BOOLEAN *Value\r
)\r
//\r
mDepexEvaluationStackPointer--;\r
*Value = *mDepexEvaluationStackPointer;\r
- return EFI_SUCCESS; \r
+ return EFI_SUCCESS;\r
}\r
\r
\r
**/\r
EFI_STATUS\r
CorePreProcessDepex (\r
- IN EFI_CORE_DRIVER_ENTRY *DriverEntry \r
+ IN EFI_CORE_DRIVER_ENTRY *DriverEntry\r
)\r
{\r
UINT8 *Iterator;\r
- \r
+\r
Iterator = DriverEntry->Depex;\r
if (*Iterator == EFI_DEP_SOR) {\r
DriverEntry->Unrequested = TRUE;\r
} else {\r
DriverEntry->Dependent = TRUE;\r
}\r
- \r
+\r
if (*Iterator == EFI_DEP_BEFORE) {\r
DriverEntry->Before = TRUE;\r
} else if (*Iterator == EFI_DEP_AFTER) {\r
DriverEntry->After = TRUE;\r
- } \r
+ }\r
\r
if (DriverEntry->Before || DriverEntry->After) {\r
CopyMem (&DriverEntry->BeforeAfterGuid, Iterator + 1, sizeof (EFI_GUID));\r
routine in this case. The SOR is just ignored and is a nop in the grammer.\r
POSTFIX means all the math is done on top of the stack.\r
\r
- @param DriverEntry DriverEntry element to update. \r
+ @param DriverEntry DriverEntry element to update.\r
\r
- @retval TRUE If driver is ready to run. \r
- @retval FALSE If driver is not ready to run or some fatal error \r
+ @retval TRUE If driver is ready to run.\r
+ @retval FALSE If driver is not ready to run or some fatal error\r
was found.\r
\r
**/\r
BOOLEAN\r
CoreIsSchedulable (\r
- IN EFI_CORE_DRIVER_ENTRY *DriverEntry \r
+ IN EFI_CORE_DRIVER_ENTRY *DriverEntry\r
)\r
{\r
EFI_STATUS Status;\r
\r
\r
Iterator = DriverEntry->Depex;\r
- \r
+\r
while (TRUE) {\r
//\r
// Check to see if we are attempting to fetch dependency expression instructions\r
ASSERT (FALSE);\r
case EFI_DEP_SOR:\r
//\r
- // These opcodes can only appear once as the first opcode. If it is found \r
+ // These opcodes can only appear once as the first opcode. If it is found\r
// at any other location, then the dependency expression evaluates to FALSE\r
//\r
if (Iterator != DriverEntry->Depex) {\r
//\r
break;\r
\r
- case EFI_DEP_PUSH: \r
+ case EFI_DEP_PUSH:\r
//\r
// Push operator is followed by a GUID. Test to see if the GUID protocol\r
// is installed and push the boolean result on the stack.\r
Iterator += sizeof (EFI_GUID);\r
break;\r
\r
- case EFI_DEP_AND: \r
+ case EFI_DEP_AND:\r
Status = PopBool (&Operator);\r
if (EFI_ERROR (Status)) {\r
return FALSE;\r
}\r
break;\r
\r
- case EFI_DEP_OR: \r
+ case EFI_DEP_OR:\r
Status = PopBool (&Operator);\r
if (EFI_ERROR (Status)) {\r
return FALSE;\r
}\r
break;\r
\r
- case EFI_DEP_NOT: \r
+ case EFI_DEP_NOT:\r
Status = PopBool (&Operator);\r
if (EFI_ERROR (Status)) {\r
return FALSE;\r
}\r
break;\r
\r
- case EFI_DEP_TRUE: \r
+ case EFI_DEP_TRUE:\r
Status = PushBool (TRUE);\r
if (EFI_ERROR (Status)) {\r
return FALSE;\r
}\r
break;\r
\r
- case EFI_DEP_FALSE: \r
+ case EFI_DEP_FALSE:\r
Status = PushBool (FALSE);\r
if (EFI_ERROR (Status)) {\r
return FALSE;\r
}\r
break;\r
\r
- case EFI_DEP_END: \r
+ case EFI_DEP_END:\r
Status = PopBool (&Operator);\r
if (EFI_ERROR (Status)) {\r
return FALSE;\r
Iterator += sizeof (EFI_GUID);\r
break;\r
\r
- default: \r
+ default:\r
goto Done;\r
}\r
- \r
+\r
//\r
// Skip over the Dependency Op Code we just processed in the switch.\r
// The math is done out of order, but it should not matter. That is\r