Print this page
acpica-unix2-20130823
PANKOVs restructure

@@ -4,11 +4,11 @@
  *                          if/else/while/return
  *
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2011, Intel Corp.
+ * Copyright (C) 2000 - 2013, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
  * are met:

@@ -84,11 +84,10 @@
         Op, Op->Common.AmlOpcode, WalkState));
 
     switch (Op->Common.AmlOpcode)
     {
     case AML_WHILE_OP:
-
         /*
          * If this is an additional iteration of a while loop, continue.
          * There is no need to allocate a new control state.
          */
         if (WalkState->ControlState)

@@ -105,11 +104,10 @@
         }
 
         /*lint -fallthrough */
 
     case AML_IF_OP:
-
         /*
          * IF/WHILE: Create a new control state to manage these
          * constructs. We need to manage these as a stack, in order
          * to handle nesting.
          */

@@ -148,10 +146,11 @@
     case AML_RETURN_OP:
 
         break;
 
     default:
+
         break;
     }
 
     return (Status);
 }

@@ -202,16 +201,14 @@
          */
         ControlState = AcpiUtPopGenericState (&WalkState->ControlState);
         AcpiUtDeleteGenericState (ControlState);
         break;
 
-
     case AML_ELSE_OP:
 
         break;
 
-
     case AML_WHILE_OP:
 
         ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH, "[WHILE_OP] Op=%p\n", Op));
 
         ControlState = WalkState->ControlState;

@@ -250,11 +247,10 @@
 
         ControlState = AcpiUtPopGenericState (&WalkState->ControlState);
         AcpiUtDeleteGenericState (ControlState);
         break;
 
-
     case AML_RETURN_OP:
 
         ACPI_DEBUG_PRINT ((ACPI_DB_DISPATCH,
             "[RETURN_OP] Op=%p Arg=%p\n",Op, Op->Common.Value.Arg));
 

@@ -346,17 +342,16 @@
         /* End the control method execution right now */
 
         Status = AE_CTRL_TERMINATE;
         break;
 
-
     case AML_NOOP_OP:
 
         /* Just do nothing! */
+
         break;
 
-
     case AML_BREAK_POINT_OP:
 
         /*
          * Set the single-step flag. This will cause the debugger (if present)
          * to break to the console within the AML debugger at the start of the

@@ -371,15 +366,13 @@
 
         Status = AcpiOsSignal (ACPI_SIGNAL_BREAKPOINT,
                     "Executed AML Breakpoint opcode");
         break;
 
-
     case AML_BREAK_OP:
     case AML_CONTINUE_OP: /* ACPI 2.0 */
 
-
         /* Pop and delete control states until we find a while */
 
         while (WalkState->ControlState &&
                 (WalkState->ControlState->Control.Opcode != AML_WHILE_OP))
         {

@@ -408,11 +401,10 @@
         {
             Status = AE_CTRL_CONTINUE;
         }
         break;
 
-
     default:
 
         ACPI_ERROR ((AE_INFO, "Unknown control opcode=0x%X Op=%p",
             Op->Common.AmlOpcode, Op));