mirror of
https://github.com/acpica/acpica/
synced 2025-02-25 18:04:08 +03:00
ACPICA: Update iASL for new Table Manger. Required new table init interface since iASL does not use RSDP/XSDT.
This commit is contained in:
parent
a74c30f030
commit
13bcd53123
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: aslmain - compiler main and utilities
|
||||
* $Revision: 1.93 $
|
||||
* $Revision: 1.94 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -120,6 +120,7 @@
|
||||
|
||||
#include "aslcompiler.h"
|
||||
#include "acnamesp.h"
|
||||
#include "actables.h"
|
||||
#include "acapps.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
@ -794,6 +795,14 @@ main (
|
||||
return -1;
|
||||
}
|
||||
|
||||
Status = AcpiAllocateRootTable (4);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
AcpiOsPrintf ("Could not initialize ACPI Table Manager, %s\n",
|
||||
AcpiFormatException (Status));
|
||||
return -1;
|
||||
}
|
||||
|
||||
/* This is where the disassembly happens */
|
||||
|
||||
AcpiGbl_DbOpt_disasm = TRUE;
|
||||
|
@ -2,7 +2,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Module Name: aslstubs - Stubs used to link to Aml interpreter
|
||||
* $Revision: 1.18 $
|
||||
* $Revision: 1.19 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -133,7 +133,7 @@ ACPI_PHYSICAL_ADDRESS
|
||||
AeLocalGetRootPointer (
|
||||
void)
|
||||
{
|
||||
return AE_ERROR;
|
||||
return 0;
|
||||
}
|
||||
|
||||
ACPI_STATUS
|
||||
|
@ -2,7 +2,7 @@
|
||||
*
|
||||
* Module Name: tbxface - Public interfaces to the ACPI subsystem
|
||||
* ACPI table oriented interfaces
|
||||
* $Revision: 1.82 $
|
||||
* $Revision: 1.83 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -131,6 +131,32 @@ AcpiTbLoadNamespace (
|
||||
void);
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiAllocateRootTable
|
||||
*
|
||||
* PARAMETERS: InitialTableCount - Size of InitialTableArray, in number of
|
||||
* ACPI_TABLE_DESC structures
|
||||
*
|
||||
* RETURN: Status
|
||||
*
|
||||
* DESCRIPTION: Allocate a root table array. Used by iASL compiler and
|
||||
* AcpiInitializeTables.
|
||||
*
|
||||
******************************************************************************/
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiAllocateRootTable (
|
||||
UINT32 InitialTableCount)
|
||||
{
|
||||
|
||||
AcpiGbl_RootTableList.Size = InitialTableCount;
|
||||
AcpiGbl_RootTableList.Flags = ACPI_ROOT_ALLOW_RESIZE;
|
||||
|
||||
return (AcpiTbResizeRootTableList ());
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* FUNCTION: AcpiInitializeTables
|
||||
@ -176,10 +202,7 @@ AcpiInitializeTables (
|
||||
*/
|
||||
if (!InitialTableArray)
|
||||
{
|
||||
AcpiGbl_RootTableList.Size = InitialTableCount;
|
||||
AcpiGbl_RootTableList.Flags = ACPI_ROOT_ALLOW_RESIZE;
|
||||
|
||||
Status = AcpiTbResizeRootTableList ();
|
||||
Status = AcpiAllocateRootTable (InitialTableCount);
|
||||
if (ACPI_FAILURE (Status))
|
||||
{
|
||||
return_ACPI_STATUS (Status);
|
||||
|
@ -1,7 +1,7 @@
|
||||
/******************************************************************************
|
||||
*
|
||||
* Name: actables.h - ACPI table management
|
||||
* $Revision: 1.58 $
|
||||
* $Revision: 1.59 $
|
||||
*
|
||||
*****************************************************************************/
|
||||
|
||||
@ -118,6 +118,10 @@
|
||||
#define __ACTABLES_H__
|
||||
|
||||
|
||||
ACPI_STATUS
|
||||
AcpiAllocateRootTable (
|
||||
UINT32 InitialTableCount);
|
||||
|
||||
/*
|
||||
* tbfadt - FADT parse/convert/validate
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user