summaryrefslogtreecommitdiffstats
path: root/compiler/dtcompile.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2010-09-15 20:49:34 +0000
committerjkim <jkim@FreeBSD.org>2010-09-15 20:49:34 +0000
commit222f62b9508c30168451c22ba677efe564ec2bb6 (patch)
tree41eb78500422196a69e6d775b795f5ee483d4a9e /compiler/dtcompile.c
parent7246513d8afc4166ea14544296293fcb8df78649 (diff)
downloadFreeBSD-src-222f62b9508c30168451c22ba677efe564ec2bb6.zip
FreeBSD-src-222f62b9508c30168451c22ba677efe564ec2bb6.tar.gz
Import ACPICA 20100915.
Diffstat (limited to 'compiler/dtcompile.c')
-rw-r--r--compiler/dtcompile.c29
1 files changed, 23 insertions, 6 deletions
diff --git a/compiler/dtcompile.c b/compiler/dtcompile.c
index 651bdfa..c287c5b 100644
--- a/compiler/dtcompile.c
+++ b/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);
}
OpenPOWER on IntegriCloud