iASL: Fix range check for Memory24 resource descriptor.

Fix boundary case where AddressMaximum is equal to the
(Length - 1). ACPICA BZ 1098.
Disassembler/acpihelp: Add UUID for the _DSD method.

UUID to be used in conjunction with _DSD.
Tests: Enhance asltsrun script to understand new debug object output.

The AML debug object now outputs the value of the current ACPI Timer().
This broke the original script. This change makes the script independent
of the contents between the opening brackets.
David Box.
Linux: Add stub implementation of ACPICA 64-bit mathematics.

This patch adds default 64-bit mathematics in aclinux.h using do_div(). As
do_div() can be used for all Linux architectures, this can also be used as
stub macros for ACPICA 64-bit mathematics.

But this is not a performance friendly way, as ACPICA's architecture
specific division OSL only requires a dividing 64-bit number with a 32-bit
number implementation, while Linux __div64_32() is not available for all
build environments. So currently, if an architecture really wants to
support ACPICA, it must implement its own division OSL.

This is required by the ACPICA header stub support. ACPICA header stubs are
useful to protect CONFIG_ACPI=n Linux kernel builds where ACPICA headers
are included. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Linux: Add support to exclude <asm/acenv.h> inclusion.

The forthcoming patch will make <acpi/acpi.h> to be visible to all kernel
source code. Thus for the architectures that do not support ACPI and
haven't implemented <asm/acenv.h>, we need to make it excluded. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Linux: Add support to force header inclusion rules for <acpi/acpi.h>.

As there is only CONFIG_ACPI=n processing in the <linux/acpi.h>, it is not
safe to include <acpi/acpi.h> directly for source out of Linux ACPI
subsystems.

This patch adds error messaging to warn developers of such wrong
inclusions. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Executer: Fix a link error for 64-bit division in the Debug object timestamp generation.

ACPICA should not use 64-bit division directly. This triggers the following
build error on Linux i386 kernel builds:
  drivers/built-in.o: In function `acpi_ex_do_debug_object':
  (.text+0x4e1a4): undefined reference to `__udivdi3'

This is introduced by the following commit:
  Commit: a4060d7fcfffff15a3e1d3aee7ccfd5cf00b50a0
  Subject: Debug object: Add current value of Timer() to debug line prefix.

Since the following 2 statements are equivalent as 0x03FFFFFF masking
keeps lower bits of num/12, and num/10 should have contained all valid bits
for 0x03FFFFFF masking no matter whether num is 32-bit or 64-bit:
 (UINT32) (num64 / 10) & 0x03FFFFFF;
 ((UINT32) num64 / 10) & 0x03FFFFFF;
This patch fixes this using the latter form statement to avoid 64-bit
division. Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
acpisrc: Fix for last few warnings from ACPICA source processing.

Now processes the entire ACPICA C source tree with no warnings.
Added additional hardening against faults when processing.
Tests/aapits: Fix a file handle memory leak.

In atexec.c. ACPICA BZ 1095.
Tests/aapits: Eliminate unreachable code warnings.

Temporarily remove a block of code that could not be reached,
pending further investigation. Eliminates unreachable code
warnings.
Merge pull request #45 from zetalog/acpica-1407

Acpica 1407
Add _PSx names to the METHOD_NAME list.

Will be used by iASL.
iASL: Add error checking for proper use of _PSx power methods.

Check to ensure the following are true:

1) _PS0 - One of these must exist: _PS1, _PS2, _PS3
2) _PS1/_PS2/_PS3: A _PS0 must exist
Merge branch 'master' of ssh://ssh.github.com/acpica/acpica
iASL: Split ASCII support functions to a new file.

New file is aslascii.c
iASL: New file, aslascii.c

For ascii support routines.
Merge branch 'master' of git://github.com/acpica/acpica
iASL: Add error detection for illegal named references.

Check for an illegal reference to a named object:

1) References from one control method to another, non-parent
method are not allowed, they will fail at runtime.

2) Forward references within a control method are not allowed.
AML interpreters use a one-pass parse of control methods
so these forward references will fail at runtime.

ACPICA BZ 1008.
iASL: Split huge parser file into multiple subfiles. Uses M4.

Split the main aslcompiler.y file into a master file and 4 included
subfiles, using the M4 macro processor to perform the actual include,
since Bison does not provide this function.

Makefiles/project files updated.

M4 is typically included in the Bison package, for both Windows
and Unix.
iASL: Update file permissions.

644