#include "PiSmmCore.h"\r
\r
///\r
-/// EFI_DEP_REPLACE_TRUE - Used to dynamically patch the dependecy expression\r
-/// to save time. A EFI_DEP_PUSH is evauated one an\r
+/// EFI_DEP_REPLACE_TRUE - Used to dynamically patch the dependency expression\r
+/// to save time. A EFI_DEP_PUSH is evaluated one an\r
/// replaced with EFI_DEP_REPLACE_TRUE. If PI spec's Vol 2\r
/// Driver Execution Environment Core Interface use 0xff\r
/// as new DEPEX opcode. EFI_DEP_REPLACE_TRUE should be\r
/**\r
This is the POSTFIX version of the dependency evaluator. This code does\r
not need to handle Before or After, as it is not valid to call this\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
+ routine in this case. POSTFIX means all the math is done on top of the stack.\r
\r
@param DriverEntry DriverEntry element to update.\r
\r
EFI_GUID DriverGuid;\r
VOID *Interface;\r
\r
- DEBUG ((DEBUG_DISPATCH, "Evaluate SMM DEPEX for FFS(%g)\n", &DriverEntry->FileName));\r
- \r
Operator = FALSE;\r
Operator2 = FALSE;\r
\r
return FALSE;\r
}\r
\r
+ DEBUG ((DEBUG_DISPATCH, "Evaluate SMM DEPEX for FFS(%g)\n", &DriverEntry->FileName));\r
+ \r
if (DriverEntry->Depex == NULL) {\r
//\r
// A NULL Depex means that the SMM driver is not built correctly. \r
//\r
DEBUG ((DEBUG_DISPATCH, " RESULT = FALSE (Unexpected BEFORE or AFTER opcode)\n"));\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
- // at any other location, then the dependency expression evaluates to FALSE\r
- //\r
- if (Iterator != DriverEntry->Depex) {\r
- DEBUG ((DEBUG_DISPATCH, " SOR\n"));\r
- DEBUG ((DEBUG_DISPATCH, " RESULT = FALSE (Unexpected SOR opcode)\n"));\r
- return FALSE;\r
- }\r
- DEBUG ((DEBUG_DISPATCH, " SOR = Requested\n"));\r
- //\r
- // Otherwise, it is the first opcode and should be treated as a NOP.\r
- //\r
- break;\r
\r
case EFI_DEP_PUSH:\r
//\r