Skip to content

Commit

Permalink
Simplify configuration for "Max Loops" system parameter
Browse files Browse the repository at this point in the history
Allow for static configuration of this parameter. It is used
to abort out of infinite loops caused by non-response from
hardware.
  • Loading branch information
acpibob committed Jun 1, 2016
1 parent d0126a3 commit 857c510
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/components/utilities/utinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ AcpiUtInitGlobals (
AcpiGbl_NextOwnerIdOffset = 0;
AcpiGbl_DebuggerConfiguration = DEBUGGER_THREADING;
AcpiGbl_OsiMutex = NULL;
AcpiGbl_MaxLoopIterations = 0xFFFF;
AcpiGbl_MaxLoopIterations = ACPI_MAX_LOOP_COUNT;

/* Hardware oriented */

Expand Down
4 changes: 4 additions & 0 deletions source/include/acconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,10 @@

#define ACPI_ADDRESS_RANGE_MAX 2

/* Maximum number of While() loops before abort */

#define ACPI_MAX_LOOP_COUNT 0xFFFF


/******************************************************************************
*
Expand Down

0 comments on commit 857c510

Please sign in to comment.