diff options
author | jkim <jkim@FreeBSD.org> | 2010-09-16 20:08:00 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-09-16 20:08:00 +0000 |
commit | ddeb148f3efdd930ab31c3975094d7115bca6e40 (patch) | |
tree | f70f94cd7c27ae47515d31be78c40b03574a2e07 /sys/contrib/dev/acpica/compiler/dtcompile.c | |
parent | 9ec9faa74565cd85da140c68d73c827afe182cc2 (diff) | |
parent | c5863557e158eb3876688e611d5915c27657e18a (diff) | |
download | FreeBSD-src-ddeb148f3efdd930ab31c3975094d7115bca6e40.zip FreeBSD-src-ddeb148f3efdd930ab31c3975094d7115bca6e40.tar.gz |
Merge ACPICA 20100915.
Diffstat (limited to 'sys/contrib/dev/acpica/compiler/dtcompile.c')
-rw-r--r-- | sys/contrib/dev/acpica/compiler/dtcompile.c | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/sys/contrib/dev/acpica/compiler/dtcompile.c b/sys/contrib/dev/acpica/compiler/dtcompile.c index 5bdc6b2..d80bb10 100644 --- a/sys/contrib/dev/acpica/compiler/dtcompile.c +++ b/sys/contrib/dev/acpica/compiler/dtcompile.c @@ -127,7 +127,7 @@ static char VersionString[9]; /* Local prototypes */ -static void +static ACPI_STATUS DtInitialize ( void); @@ -166,7 +166,12 @@ DtDoCompile ( /* Initialize globals */ - DtInitialize (); + Status = DtInitialize (); + if (ACPI_FAILURE (Status)) + { + printf ("Error during compiler initialization, 0x%X\n", Status); + return (Status); + } /* * Scan the input file (file is already open) and @@ -236,26 +241,38 @@ CleanupAndExit: * * PARAMETERS: None * - * RETURN: None + * RETURN: Status * * DESCRIPTION: Initialize data table compiler globals. Enables multiple * compiles per invocation. * *****************************************************************************/ -static void +static ACPI_STATUS DtInitialize ( void) { + ACPI_STATUS Status; - AcpiOsInitialize (); - AcpiUtInitGlobals (); + + Status = AcpiOsInitialize (); + if (ACPI_FAILURE (Status)) + { + return (Status); + } + + Status = AcpiUtInitGlobals (); + if (ACPI_FAILURE (Status)) + { + return (Status); + } Gbl_FieldList = NULL; Gbl_RootTable = NULL; Gbl_SubtableStack = NULL; sprintf (VersionString, "%X", (UINT32) ACPI_CA_VERSION); + return (AE_OK); } |