From 4cfe830b127fc82a0185fb86fc36f56e119a08a7 Mon Sep 17 00:00:00 2001 From: aystarik Date: Wed, 29 Jun 2005 20:42:14 +0000 Subject: [PATCH] Remove debug divide check code date 2002.05.17.18.01.00; author rmoore1; state Exp; --- source/tools/acpiexec/aemain.c | 78 +--------------------------------- 1 file changed, 1 insertion(+), 77 deletions(-) diff --git a/source/tools/acpiexec/aemain.c b/source/tools/acpiexec/aemain.c index 83ef20aa7..87534ac75 100644 --- a/source/tools/acpiexec/aemain.c +++ b/source/tools/acpiexec/aemain.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: aemain - Main routine for the AcpiExec utility - * $Revision: 1.64 $ + * $Revision: 1.65 $ * *****************************************************************************/ @@ -136,80 +136,6 @@ #define _COMPONENT PARSER ACPI_MODULE_NAME ("aemain") -/* - * TBD: Debug only, remove! - */ -#if ACPI_MACHINE_WIDTH == 32 -void -AcpiCompare ( - UINT64_OVERLAY Dividend, - UINT64_OVERLAY Divisor, - UINT64_OVERLAY LibDiv, - UINT64_OVERLAY Div, - UINT64_OVERLAY LibMod, - UINT64_OVERLAY Mod) -{ - - if (LibDiv.Full != Div.Full) - { - AcpiOsPrintf ("Mismatch-DIV: n=%8.8X%8.8X d=%8.8X%8.8X, lr=%8.8X%8.8X ar=%8.8X%8.8X\n", - Dividend.Part.Hi, Dividend.Part.Lo, - Divisor.Part.Hi, Divisor.Part.Lo, - LibDiv.Part.Hi, LibDiv.Part.Lo, - Div.Part.Hi, Div.Part.Lo); - } - - if (LibMod.Full != Mod.Full) - { - AcpiOsPrintf ("Mismatch-MOD: n=%8.8X%8.8X d=%8.8X%8.8X, lr=%8.8X%8.8X ar=%8.8X%8.8X\n", - Dividend.Part.Hi, Dividend.Part.Lo, - Divisor.Part.Hi, Divisor.Part.Lo, - LibMod.Part.Hi, LibMod.Part.Lo, - Mod.Part.Hi, Mod.Part.Lo); - } -} - - /* Check answer against the library (DEBUG ONLY) */ -/* - CompareDiv.Full = Dividend.Full / Divisor.Full; - CompareMod.Full = Dividend.Full % Divisor.Full; - AcpiCompare (Dividend, Divisor, CompareDiv, Quotient, CompareMod, Remainder); -*/ -void -AeDoDivideCheck (void) -{ - UINT32 i; - UINT64_OVERLAY CompareDiv; - UINT64_OVERLAY CompareMod; - UINT64_OVERLAY Dividend; - UINT64_OVERLAY Divisor; - UINT64_OVERLAY Quotient; - UINT64_OVERLAY Remainder; - - - for (i = 1; i < 0xFFFFFF; i++) - { - Dividend.Part.Hi = rand (); - Dividend.Part.Lo = rand (); - Divisor.Part.Hi = rand (); - Divisor.Part.Lo = rand (); - - CompareDiv.Full = Dividend.Full / Divisor.Full; - CompareMod.Full = Dividend.Full % Divisor.Full; - - AcpiUtDivide (&Dividend.Full, &Divisor.Full, &Quotient.Full, &Remainder.Full); - - AcpiCompare (Dividend, Divisor, CompareDiv, Quotient, CompareMod, Remainder); - } - -} -#else -void -AeDoDivideCheck (void) -{ -} -#endif - #if ACPI_MACHINE_WIDTH == 16 @@ -286,8 +212,6 @@ main ( AcpiDbgLayer = 0xFFFFFFFF; - AeDoDivideCheck (); - printf ("ACPI AML Execution/Debug Utility "); #if ACPI_MACHINE_WIDTH == 16