diff options
author | jkim <jkim@FreeBSD.org> | 2009-06-02 18:53:21 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2009-06-02 18:53:21 +0000 |
commit | 73af4710a0808de20bb2b092c916497d666c7c30 (patch) | |
tree | d651e323e75f9dcbfdcc972e9cb96f08c49ff0da /sys/contrib/dev/acpica/compiler/aslutils.c | |
parent | fea04a3fd158d65e9ffd20e50e38364d82b85c44 (diff) | |
parent | 02935ea0ac5fb3dfc5e452b2a18288d7e523dc1b (diff) | |
download | FreeBSD-src-73af4710a0808de20bb2b092c916497d666c7c30.zip FreeBSD-src-73af4710a0808de20bb2b092c916497d666c7c30.tar.gz |
MFV: ACPICA 20090521
Diffstat (limited to 'sys/contrib/dev/acpica/compiler/aslutils.c')
-rw-r--r-- | sys/contrib/dev/acpica/compiler/aslutils.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/sys/contrib/dev/acpica/compiler/aslutils.c b/sys/contrib/dev/acpica/compiler/aslutils.c index 5acf1fc..ecba7c3 100644 --- a/sys/contrib/dev/acpica/compiler/aslutils.c +++ b/sys/contrib/dev/acpica/compiler/aslutils.c @@ -2,7 +2,6 @@ /****************************************************************************** * * Module Name: aslutils -- compiler utilities - * $Revision: 1.72 $ * *****************************************************************************/ @@ -10,7 +9,7 @@ * * 1. Copyright Notice * - * Some or all of this work - Copyright (c) 1999 - 2007, Intel Corp. + * Some or all of this work - Copyright (c) 1999 - 2009, Intel Corp. * All rights reserved. * * 2. License @@ -116,10 +115,10 @@ *****************************************************************************/ -#include <contrib/dev/acpica/compiler/aslcompiler.h> +#include "aslcompiler.h" #include "aslcompiler.y.h" -#include <contrib/dev/acpica/acnamesp.h> -#include <contrib/dev/acpica/amlcode.h> +#include "acnamesp.h" +#include "amlcode.h" #define _COMPONENT ACPI_COMPILER ACPI_MODULE_NAME ("aslutils") @@ -131,6 +130,12 @@ static const char * const *yytname = &AslCompilername[254]; extern const char * const yytname[]; #endif +char HexLookup[] = +{ + '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' +}; + + /* Local prototypes */ static ACPI_STATUS @@ -333,8 +338,8 @@ UtConvertByteToHex ( Buffer[0] = '0'; Buffer[1] = 'x'; - Buffer[2] = (UINT8) hex[(RawByte >> 4) & 0xF]; - Buffer[3] = (UINT8) hex[RawByte & 0xF]; + Buffer[2] = (UINT8) HexLookup[(RawByte >> 4) & 0xF]; + Buffer[3] = (UINT8) HexLookup[RawByte & 0xF]; } @@ -359,8 +364,8 @@ UtConvertByteToAsmHex ( { Buffer[0] = '0'; - Buffer[1] = (UINT8) hex[(RawByte >> 4) & 0xF]; - Buffer[2] = (UINT8) hex[RawByte & 0xF]; + Buffer[1] = (UINT8) HexLookup[(RawByte >> 4) & 0xF]; + Buffer[2] = (UINT8) HexLookup[RawByte & 0xF]; Buffer[3] = 'h'; } @@ -530,7 +535,7 @@ UtDisplaySummary ( if ((Gbl_ExceptionCount[ASL_ERROR] == 0) || (Gbl_IgnoreErrors)) { FlPrintFile (FileId, - "AML Output: %s - %d bytes %d named objects %d executable opcodes\n\n", + "AML Output: %s - %d bytes, %d named objects, %d executable opcodes\n\n", Gbl_Files[ASL_FILE_AML_OUTPUT].Filename, Gbl_TableLength, TotalNamedObjects, TotalExecutableOpcodes); } |